asp.net.ph

DataSet.ExtendedProperties Property

System.Data Namespace   DataSet Class


Returns the collection of user-defined DataSet properties.

Syntax


Script [ PropertyCollection variable = ] DataSet.ExtendedProperties

Property Value


variable Returns a PropertyCollection of custom information.

The property is read only with no default value.

Remarks

The ExtendedProperties property allows you to store custom information for the DataSet. For example, you might store a time when the data should be refreshed.

Extended properties must be of type String. Properties that are not of type String are not persisted when the DataSet is written as XML.

Example

The following example adds a custom property to the PropertyCollection returned by the ExtendedProperties property. The second example retrieves the custom property.

private void SetProperty ( DataSet myDataSet ) {
   myDataSet.ExtendedProperties.Add ( "password", "yervzeñun" );
}

private void GetProperty ( DataSet myDataSet ) {
   Response.Write ( myDataSet.ExtendedProperties [ "password" ].ToString ( ) );
}
  C# VB

See Also

DataSet Members Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph