Partager via


CellConsumerInitEventArgs Class

The CellConsumerInitEventArgs class identifies the initial argument structure for design time creation. These arguments are passed to the connected Web Part as part of the CellConsumerInit event to tell the connected Web Part what the name and display name of the cell is.

System.Object

   System.EventArgs

      Microsoft.SharePoint.WebPartPages.Communication.InitEventArgs

         Microsoft.SharePoint.WebPartPages.Communication.CellConsumerInitEventArgs

Public Constructors

The following table shows the constructors of the CellConsumerInitEventArgs class and a brief description of each.

Name Description
CellConsumerInitEventArgs Initializes an instance of the CellConsumerInitEventArgs class.

Public Properties

The following table shows the properties of the CellConsumerInitEventArgs class, the data type of each property, and a brief description of each.

Name Data type Description
FieldDisplayName String Display name of the cell
FieldName String Name of the cell

Thread Safety

Any public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Any instance members are not guaranteed to be thread safe.

Example

The following code example shows an overridden PartCommunicationInit method that creates a CellConsumerInitEventArgs object, sets the FieldName and FieldDisplayName properties, and then fires the CellConsumerInit event. This code example is part of a larger example provided for the ICellConsumer interface.

Requirements

Namespace: Microsoft.SharePoint.WebPartPages.Communication

Platforms: Microsoft Windows Server 2003

Assembly: Windows SharePoint Services (in Microsoft.SharePoint.dll)

Security: Code Access Security. In addition, the WebPartPermissions.Connections permission is required to use this member.