ExtendedProperties |
PropertyCollection ep = DataColumn.ExtendedProperties; |
Accesses the PropertyCollection object of the DataColumn that allows custom information related to the DataColumn to be stored. Nonstring properties aren't persisted when the DataSet is written as XML.
The following example shows how to set and retrieve custom information for the DataTable using ExtendedProperties :
// set col.ExtendedProperties.Add("MyKey", "MyCustomData"); // get String customData = col.ExtendedProperties["MyKey"].ToString();
See the Notes for the ExtendedProperties collection section in Chapter 22.