Hello Richard,
Thanks for your post on MSDN forum.
The (Name) attribute in the identifier of the typed DataSet, which indicates the instance of the typed DataSet used in the code. However, the DataSetName just a Property of the typed DataSet(inherited from the DataSet class), which is a string object and indicates the name of the current DataSet. The following code would give some idea of the two things.
private void button1_Click(object sender, EventArgs e)
{
//We change the DataSetName to the string as we want,
//but we cannot change the identifier
this.northwindDataSet.DataSetName = "MyCustomName";
//northwindDataSet is the (Name) attribute.
//"MyCustomName" is the name of northwindDataSet.
MessageBox.Show(this.northwindDataSet.DataSetName);
}
Thanks
Rong-Chun Zhang
MSDN Subscriber Support in Forum
If you have any feedback on our support, please contact
msdnmg@microsoft.com
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.