TableCallback Delegate
References the method to call when retrieving table data from a provider.
Assembly: System.Web (in System.Web.dll)
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.
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.
The two controls and the connection are included in a Web page, as shown in the following example.
Available since 2.0