IWebPartRow.Schema Property

Gets the schema information for a data row 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 ();
}
/** @property */
PropertyDescriptorCollection get_Schema ()

function get Schema () : PropertyDescriptorCollection

Not applicable.

Property Value

A PropertyDescriptorCollection describing the data.

This property provides property information for the data. Using the IWebPartRow interface in a connection, you get a PropertyDescriptorCollection object, which is referenced by the Schema property. The contract specifies that calling Schema[n].GetValue(RowData) returns the value of the nth column in the row. You need to use the Schema property to get the values in the row.

The following code example shows the implementation and use of the Schema property. The complete example is shown in the class overview for the IWebPartRow 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 row as it writes the row data to the page.

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

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

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show: