Export (0) Print
Expand All

WebPartManagerInternals.SetTransformer Method

Note: This method is new in the .NET Framework version 2.0.

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)

public void SetTransformer (
	WebPartConnection connection,
	WebPartTransformer transformer
)
public void SetTransformer (
	WebPartConnection connection, 
	WebPartTransformer transformer
)
public function SetTransformer (
	connection : WebPartConnection, 
	transformer : WebPartTransformer
)

Parameters

connection

A WebPartConnection that creates a connection between server controls.

transformer

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.

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.

.NET Framework

Supported in: 2.0

Community Additions

ADD
Show:
© 2014 Microsoft