Partager via


CellProviderInit(object, Microsoft.SharePoint.WebPartPages.Communication.CellProviderInitEventArgs) Method

The CellProviderInit method of the ICellConsumer interface handles the initialization event

Visit CellProviderInit

. This event handler is of type CellProviderInitEventHandler.

Parameters

sender   Reference to the consumer Web Part.

cellProviderInitArgs   The arguments passed by the provider Web Part.

Example

The following code example shows the implementation of a CellProviderInit method to receive the field display name sent by an ICellProvider Web Part. This code example is part of a larger example provided for the ICellConsumer 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.