Gets the collection of customized user information.
Assembly: System.Data (in System.Data.dll)
Syntax . . :: . PropertyCollection
A PropertyCollection that contains custom user information.
<BrowsableAttribute(False)> _
Public ReadOnly Property ExtendedProperties As PropertyCollection[BrowsableAttribute(false)]
public PropertyCollection ExtendedProperties { get; }[BrowsableAttribute(false)]
public:
property PropertyCollection^ ExtendedProperties {
PropertyCollection^ get ();
}[<BrowsableAttribute(false)>]
member ExtendedProperties : PropertyCollection
Property Value
Type: System.DataA PropertyCollection that contains custom user information.
Examples
The following example adds a timestamp value to the DataTable through the ExtendedProperties property.
Private Sub GetAndSetExtendedProperties(ByVal myTable As DataTable)
' Add an item to the collection.
myTable.ExtendedProperties.Add("TimeStamp", DateTime.Now)
' Print the item.
Console.WriteLine(myTable.ExtendedProperties.Item("TimeStamp"))
End Sub
private void GetAndSetExtendedProperties(DataTable myTable){
// Add an item to the collection.
myTable.ExtendedProperties.Add("TimeStamp", DateTime.Now);
// Print the item.
Console.WriteLine(myTable.ExtendedProperties["TimeStamp"]);
}
Platforms
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.