Partager via


CellConsumerInit(object, Microsoft.SharePoint.WebPartPages.Communication.CellConsumerInitEventArgs) Method

The CellConsumerInit method of the ICellProvider interface is an event handler for receiving initialization information passed by the CellConsumerInit event of a connected Web Part that implements the ICellConsumer interface. The delegate for this event handler is CellConsumerInitEventHandler.

Parameters

sender   A reference to the consumer Web Part.

cellConsumerInitEventArgs   The argument data structure passed by the consumer Web Part.

Example

The following code example shows the implementation of a CellConsumerInit method to receive the field display name sent by an ICellConsumer Web Part. This code example is part of a larger example provided for the ICellProvider interface.

Because this example uses the SPEncode Class, it requires a using directive (Imports in Visual Basic) for the Microsoft.SharePoint.Utilities namespace.

Requirements

Platforms: Windows Server 2003

Security: Code Access Security The WebPartPermissions.Connections permission is required to use this member.