ProxyWebPart.ProxyWebPart(String, String, String, String) Constructor

Initializes a new instance of the ProxyWebPart class when a dynamic Web Parts control must be replaced.

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

protected:
ProxyWebPart (
	String^ originalID, 
	String^ originalTypeName, 
	String^ originalPath, 
	String^ genericWebPartID
)
protected ProxyWebPart (
	String originalID, 
	String originalTypeName, 
	String originalPath, 
	String genericWebPartID
)
protected function ProxyWebPart (
	originalID : String, 
	originalTypeName : String, 
	originalPath : String, 
	genericWebPartID : String
)
Not applicable.

Parameters

originalID

A string that is the control ID (not the unique ID) of the control to replace. If a GenericWebPart control is replaced, the ID is the ID of its child server control.

originalTypeName

A string that is the name of the Type of the control to replace. If a GenericWebPart control is replaced, the type name is the type of its child server control.

originalPath

A string that contains the path to the user control to replace.

genericWebPartID

A string that returns the ID of a GenericWebPart control, if that type of control is being replaced. This is needed for controls that do not inherit from the WebPart base class.

Exception typeCondition

ArgumentException

originalID is a null reference (Nothing in Visual Basic) or an empty string.

- or -

originalTypeName is a null reference (Nothing in Visual Basic) or an empty string.

ArgumentException

originalPath is specified but genericWebPartID is a null reference (Nothing in Visual Basic) or an empty string.

This constructor is used to create a proxy Web Parts control to replace a dynamic Web Parts control. To replace a static Web Parts control, use the ProxyWebPart(WebPart) constructor to create a proxy Web Parts control.

Windows 98, Windows Server 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 Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show: