CellConsumerInitEventHandler delegate

NOTE: This API is now obsolete.

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

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 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

Comentários

Quando você criar um representante de CellConsumerInitEventHandler , 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 a declaração de um evento do tipo CellConsumerInitEventHandler de uma classe Microsoft.SharePoint.WebPartPages.WebPart que implementa a interface ICellConsumer . Um exemplo de código que mostra a implementação do manipulador de eventos é o tópico de evento CellConsumerInit . Um exemplo de código que mostra a implementação completa da interface ICellConsumer é o tópico 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;

Ver também

Referência

Microsoft.SharePoint.WebPartPages.Communication namespace