The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
0 out of 3 rated this helpful - Rate this topic

DataSet.ExtendedProperties Property

Gets the collection of customized user information associated with the DataSet.

Namespace: System.Data
Assembly: System.Data (in

public PropertyCollection ExtendedProperties { get; 
/** @property */
public PropertyCollection get_ExtendedProperties ()

public function get ExtendedProperties () : PropertyCollection

Property Value

A PropertyCollection with all custom user information.

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

Extended properties must be of type String if you want them persisted when the DataSet is written as XML.

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

private void DemonstrateEnforceConstraints()
    // Create a DataSet with one table, one column and 
    // a UniqueConstraint.
    DataSet dataSet= new DataSet("dataSet");
    DataTable table = new DataTable("table");
    DataColumn column = new DataColumn("col1");

    // A UniqueConstraint is added when the Unique 
    // property is true.
    Console.WriteLine("constraints.count: " + 

    // add five rows.
    DataRow row ;
    for(int i=0;i<5;i++)
        row = table.NewRow();
        row["col1"] = i;

    // Change the values of all rows to 1.
    foreach(DataRow thisRow in table.Rows)
        //Console.WriteLine("\table" + thisRow[0]);
    catch(System.Data.ConstraintException e)
        // Process exception and return.
        Console.WriteLine("Exception of type {0 occurred.", 

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0, 1.1, 1.0

.NET Compact Framework

Supported in: 2.0, 1.0
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2014 Microsoft. All rights reserved.