24.3 Collections Reference

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.

Example

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(); 

Note

See the Notes for the ExtendedProperties collection section in Chapter 22.



ADO. NET in a Nutshell
ADO.NET in a Nutshell
ISBN: 0596003617
EAN: 2147483647
Year: 2005
Pages: 415

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net