WebPartTransformerAttribute Constructor
Assembly: System.Web (in system.web.dll)
public WebPartTransformerAttribute ( Type consumerType, Type providerType )
public function WebPartTransformerAttribute ( consumerType : Type, providerType : Type )
Parameters
- consumerType
The Type of the interface supported by the consumer connection point.
- providerType
The Type of the interface supported by the provider connection point.
The WebPartTransformerAttribute constructor sets the consumer connection point type and the provider connection point type for the transformer. These values can be retrieved through the ConsumerType property and the ProviderType property, respectively.
The following code example demonstrates the use of a WebPartTransformerAttribute attribute with a customized WebPartTransformer class. The attribute indicates that the RowToStringTransformer class can transform a provider connection point of type IWebPartRow to a consumer connection point of type IString.
This code example is part of a larger example found in the WebPartTransformer class overview.
Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.