Share via


Delegado CellConsumerInitEventHandler

NOTA: esta API está ahora obsoleta.

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

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 CellConsumerInitEventHandler ( _
    sender As Object, _
    e As CellConsumerInitEventArgs _
)
'Uso
Dim instance As New CellConsumerInitEventHandler(AddressOf HandlerMethod)
[ObsoleteAttribute("Use System.Web.UI.WebControls.WebParts.IWebPartField instead")]
public delegate void CellConsumerInitEventHandler(
    Object sender,
    CellConsumerInitEventArgs e
)

Parámetros

Comentarios

Cuando se crea un delegado de CellConsumerInitEventHandler , 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 CellConsumerInitEventHandler de una clase Microsoft.SharePoint.WebPartPages.WebPart que implementa la interfaz ICellConsumer . Es un ejemplo de código que se muestra la implementación del controlador de eventos en el tema del evento CellConsumerInit . Código de ejemplo que muestra la implementación completa de la interfaz de ICellConsumer está en el tema de ICellConsumer .

' Step #3: Declare the ICellConsumer events.
' Because this class implements the ICellConsumer interface, it must 
' declare the interface member event CellConsumerInit. 
Public Event CellConsumerInit As CellConsumerInitEventHandler Implements ICellConsumer.CellConsumerInit
// Step #3: Declare the ICellConsumer events.
// Because this class implements the ICellConsumer interface, it must 
// declare the interface member event CellConsumerInit. 
public event CellConsumerInitEventHandler CellConsumerInit;

Vea también

Referencia

Espacio de nombres Microsoft.SharePoint.WebPartPages.Communication