Delegado CellReadyEventHandler
NOTA: esta API está ahora obsoleta.
Representa el método que controlará el evento CellReady 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 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
sender
Tipo: System.ObjectEl origen del evento, el elemento Web.
e
Tipo: Microsoft.SharePoint.WebPartPages.Communication.CellReadyEventArgsCellReadyEventArgs que contiene los datos del evento.
Comentarios
Cuando se crea un delegado de CellReadyEventHandler , 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 que la declaración de un evento de tipo CellReadyEventHandler de una clase Microsoft.SharePoint.WebPartPages.WebPart 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 CellReady . 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