CellReadyEventHandler delegate

NOTE: This API is now obsolete.

Representa o método que manipulará o evento CellReady acionado por uma Web Part que implementa a interface ICellProvider .

Namespace:  Microsoft.SharePoint.WebPartPages.Communication
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaração
<ObsoleteAttribute("Use System.Web.UI.WebControls.WebParts.IWebPartField instead")> _
Public Delegate Sub CellReadyEventHandler ( _
    sender As Object, _
    e As CellReadyEventArgs _
)
'Uso
Dim instance As New CellReadyEventHandler(AddressOf HandlerMethod)
[ObsoleteAttribute("Use System.Web.UI.WebControls.WebParts.IWebPartField instead")]
public delegate void CellReadyEventHandler(
    Object sender,
    CellReadyEventArgs e
)

Parâmetros

Comentários

Quando você criar um representante de CellReadyEventHandler , você identificar o método que manipulará o evento. Para associar o evento com o manipulador de eventos, adicione uma instância do representante para o evento. O manipulador de eventos é chamado sempre que o evento ocorre, a menos que você remova o representante.

Examples

O exemplo de código a seguir mostra que a declaração de um evento do tipo CellReadyEventHandler de uma classe Microsoft.SharePoint.WebPartPages.WebPart implementa a interface ICellProvider . Um exemplo de código que mostra a implementação do manipulador de eventos é o tópico de evento CellReady . Um exemplo de código que mostra a implementação completa da interface ICellProvider é o tópico 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;

Ver também

Referência

Microsoft.SharePoint.WebPartPages.Communication namespace