CellReadyEventHandler - Délégué

Remarque : cette API est désormais obsolète.

Représente la méthode qui gérera l'événement CellReady déclenché par un composant qui implémente l'interface ICellProvider .

Espace de noms :  Microsoft.SharePoint.WebPartPages.Communication
Assembly :  Microsoft.SharePoint (dans Microsoft.SharePoint.dll)

Syntaxe

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

Paramètres

  • sender
    Type : System.Object

    La source de l'événement, le composant WebPart.

Remarques

Lorsque vous créez un délégué CellReadyEventHandler , vous identifiez la méthode qui gérera l'événement. Pour associer l'événement à votre gestionnaire d'événements, ajoutez une instance du délégué à l'événement. Le Gestionnaire d'événements est appelé chaque fois que l'événement se produit, sauf si vous supprimez le délégué.

Exemples

L'exemple de code suivant illustre que la déclaration d'un événement du type CellReadyEventHandler à partir d'une classe Microsoft.SharePoint.WebPartPages.WebPart implémente l'interface ICellProvider . Un exemple de code qui illustre l'implémentation du Gestionnaire d'événements se trouve dans la rubrique sur l'événement CellReady . Un exemple de code qui illustre l'implémentation complète de l'interface ICellProvider se trouve dans la rubrique 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;

Voir aussi

Référence

Microsoft.SharePoint.WebPartPages.Communication - Espace de noms