CellReadyEventHandler delegate
NOTE: This API is now obsolete.
表示將處理由 Web 組件實作ICellProvider介面引發CellReady事件的方法。
Namespace: Microsoft.SharePoint.WebPartPages.Communication
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
<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
)
參數
sender
Type: System.Object事件網頁組件的來源。
e
Type: Microsoft.SharePoint.WebPartPages.Communication.CellReadyEventArgsCellReadyEventArgs 包含事件資料。
備註
當您建立CellReadyEventHandler委派時,會識別處理事件的方法。若要事件與事件處理常式產生關聯,請將委派的執行個體加入事件。除非您移除委派,否則每當事件發生時,會呼叫事件處理常式。
Examples
下列程式碼範例會顯示從Microsoft.SharePoint.WebPartPages.WebPart類別的型別CellReadyEventHandler的事件的宣告實作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;