Partager via


ListProviderInit Event

The ListProviderInit event of the IListProvider interface occurs as the initialization event that provides a list of the field names of data and an optional list of field display names to a Web Part that implements the IListConsumer interface.

Event Data

The event handler receives an argument of type ListProviderInitEventArgs containing data related to this event. The following ListProviderInitEventArgs properties provide information specific to this event.

Property Description
FieldList Gets or sets the list of fields for the provided list.
FieldDisplayList Gets or sets the list of field display names for the provided list.

Example

The following code example overrides the PartCommunicationInit method and fires the ListProviderInit event. This code example is part of a larger example provided for the IListProvider interface.

Requirements

Platforms: Microsoft Windows Server 2003

Security: Code Access Security