TableCallback Delegate

 

References the method to call when retrieving table data from a provider.

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

public delegate void TableCallback(
	ICollection^ tableData
)

Parameters

tableData
Type: System.Collections::ICollection^

The data to retrieve from the provider.

When a Web Parts control implements the IWebPartTable interface and serves as a provider in a Web Parts connection, the consumer or transformer must retrieve and process the table data from the provider. The TableCallback delegate represents the method to call for processing the provider data.

The GetTableData method contains a TableCallback delegate parameter.

The following code example contains a Web Parts control named TableProviderWebPart that serves as a provider of data in the form of a table. The control includes an implementation of the GetTableData method, which receives a parameter of type TableCallback. This method calls the method represented by the TableCallback delegate passing the table data.

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

In the OnPreRender method, the consumer calls GetTableData in TableProviderWebPart and passes its GetTableData method as the delegate to call with the table data, as shown in the following code example.

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

The two controls and the connection are included in a Web page, as shown in the following example.

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

.NET Framework
Available since 2.0
Return to top
Show: