WebPartManagerInternals.SetTransformer Method (WebPartConnection, WebPartTransformer)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Assigns a WebPartTransformer object to be used in a connection between two server controls.

Namespace:   System.Web.UI.WebControls.WebParts
Assembly:  System.Web (in System.Web.dll)

member SetTransformer : 
        connection:WebPartConnection *
        transformer:WebPartTransformer -> unit


Type: System.Web.UI.WebControls.WebParts.WebPartConnection

A WebPartConnection that creates a connection between server controls.

Type: System.Web.UI.WebControls.WebParts.WebPartTransformer

A WebPartTransformer to be used with connection.

When a connection between two server controls requires a transformer so that the consumer control can interpret data from the provider control, the SetTransformer method is called to supply a specific WebPartTransformer object to the WebPartConnection object. If the connection already has a transformer assigned to it, the object referenced by the transformer parameter overrides the existing one; otherwise, the object referenced in the transformer parameter is used.

The WebPartManager control uses the SetTransformer method whenever you call the ConnectWebParts method to establish a connection that requires a transformer.

.NET Framework
Available since 2.0
Return to top