ProxyWebPart Constructor (WebPart^)
.NET Framework (current version)
Initializes a new instance of the ProxyWebPart class when a static Web Parts control (or server or user control) must be replaced.
Assembly: System.Web (in System.Web.dll)
Parameters
- webPart
-
Type:
System.Web.UI.WebControls.WebParts::WebPart^
The Web Parts control to be replaced.
| Exception | Condition |
|---|---|
| ArgumentNullException | webPart is null. |
| ArgumentException | webPart has an empty ID property - or - webPart is an empty GenericWebPart - or - webPart is of type GenericWebPart and its child control has an empty ID property |
This constructor is used to create a proxy Web Parts control to replace a static Web Parts control. To replace a dynamically created Web Parts control, use the ProxyWebPart(String^, String^, String^, String^) constructor to create the proxy Web Parts control.
.NET Framework
Available since 2.0
Available since 2.0
Show: