This documentation is archived and is not being maintained.

IWebPartTable::Schema Property

Gets the schema information for a data table that is used to share data between two WebPart controls.

Namespace:  System.Web.UI.WebControls.WebParts
Assembly:  System.Web (in System.Web.dll)

property PropertyDescriptorCollection^ Schema {
	PropertyDescriptorCollection^ get ();
}

This property provides property information on the data in an IWebPartTable instance. There is an implicit contract between the schema referenced by the Schema property and the data in the table. The contract is that for each PropertyDescriptor object in the Schema property, you can call GetValue on an element of the table data to get the value in a column or a row of the table.

The following code example shows the implementation and use of the Schema property. The complete example is shown in the class overview for the IWebPartTable interface. The provider control implements the Schema property. Then the consumer control, in its RenderContents method, queries the Schema property to retrieve information about the table as it writes the table data to the page.

No code example is currently available or this language may not be supported.

Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98

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

.NET Framework

Supported in: 3.5, 3.0, 2.0
Show: