Delegado CellProviderInitEventHandler

NOTA: esta API está ahora obsoleta.

Representa el método que controlará el evento CellProviderInit desencadenado por un elemento Web que implementa la interfaz ICellProvider .

Espacio de nombres:  Microsoft.SharePoint.WebPartPages.Communication
Ensamblado:  Microsoft.SharePoint (en Microsoft.SharePoint.dll)

Sintaxis

'Declaración
<ObsoleteAttribute("Use System.Web.UI.WebControls.WebParts.IWebPartField instead")> _
Public Delegate Sub CellProviderInitEventHandler ( _
    sender As Object, _
    e As CellProviderInitEventArgs _
)
'Uso
Dim instance As New CellProviderInitEventHandler(AddressOf HandlerMethod)
[ObsoleteAttribute("Use System.Web.UI.WebControls.WebParts.IWebPartField instead")]
public delegate void CellProviderInitEventHandler(
    Object sender,
    CellProviderInitEventArgs e
)

Parámetros

  • sender
    Tipo: System.Object

    El origen del evento, el objeto WebPart .

Comentarios

Cuando se crea un delegado de CellProviderInitEventHandler , se identifica el método que controlará el evento. Para asociar el evento a su controlador de eventos, agregue una instancia del delegado al evento. El controlador de eventos se llama siempre que se produce el evento, a menos que se quite al delegado.

Ejemplos

En el ejemplo de código siguiente se muestra la declaración de un evento de tipo CellProviderInitEventHandler de una clase Microsoft.SharePoint.WebPartPages.WebPart que implementa la interfaz ICellProvider . Es un ejemplo de código que se muestra la implementación del controlador de eventos en el tema del evento CellProviderInit . Código de ejemplo que muestra la implementación completa de la interfaz de ICellProvider está en el tema de 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;

Vea también

Referencia

Espacio de nombres Microsoft.SharePoint.WebPartPages.Communication