CellReadyEventHandler 委托

请注意:此 API 现在已过时。

代表将用来处理由 Web 部件可实现ICellProvider接口激发CellReady事件的方法。

命名空间:  Microsoft.SharePoint.WebPartPages.Communication
程序集:  Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)

语法

声明
<ObsoleteAttribute("Use System.Web.UI.WebControls.WebParts.IWebPartField instead")> _
Public Delegate Sub CellReadyEventHandler ( _
    sender As Object, _
    e As CellReadyEventArgs _
)
用法
Dim instance As New CellReadyEventHandler(AddressOf HandlerMethod)
[ObsoleteAttribute("Use System.Web.UI.WebControls.WebParts.IWebPartField instead")]
public delegate void CellReadyEventHandler(
    Object sender,
    CellReadyEventArgs e
)

参数

备注

当您创建CellReadyEventHandler代理人时,您将标识将处理的事件的方法。若要事件处理程序相关联的事件,添加到事件的委托的一个实例。除非您删除代理人,称为发生事件时,事件处理程序。

示例

下面的代码示例显示的事件的类型CellReadyEventHandler从Microsoft.SharePoint.WebPartPages.WebPart类声明实现ICellProvider接口。显示事件处理程序实现的代码示例是CellReady事件主题中。显示ICellProvider接口的完整实现的代码示例是ICellProvider主题中。

' Step #3: Declare the ICellProvider events.
' Because this class implements the ICellProvider interface, it must 
' implement the interface member events CellProviderInit and CellReady.
Public Event CellProviderInit As CellProviderInitEventHandler Implements ICellProvider.CellProviderInit
Public Event CellReady As CellReadyEventHandler Implements ICellProvider.CellReady
// Step #3: Declare the ICellProvider events.
// Because this class implements the ICellProvider interface, it must 
// implement the interface member events CellProviderInit and 
// CellReady.
public event CellProviderInitEventHandler CellProviderInit;    
public event CellReadyEventHandler CellReady;

另请参阅

引用

Microsoft.SharePoint.WebPartPages.Communication 命名空间