This documentation is archived and is not being maintained.

WebPartTransformer.Transform Method

When implemented, provides an object for transforming the data.

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

public abstract Object Transform(
	Object providerData


Type: System.Object

The provider data to be transformed.

Return Value

Type: System.Object
An Object representing the data to be transformed.

You must override this method when implementing the WebPartTransformer class.

The following code example demonstrates how to override the Transform method in a customized WebPartTransformer class. It is part of a larger example found in the WebPartTransformer class overview.

public override object Transform(object providerData)
    _provider = (IWebPartRow)providerData;
    return this;

Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0, 2.0