UnauthorizedWebPart Constructor (WebPart^)

 
System_CAPS_noteNote

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

Initializes a new instance of an UnauthorizedWebPart control, called when a static WebPart control (or server or user control) fails authorization.

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

public:
UnauthorizedWebPart(
	WebPart^ webPart
)

Parameters

webPart
Type: System.Web.UI.WebControls.WebParts::WebPart^

A WebPart that has failed to be authorized by the WebPartManager control.

The UnauthorizedWebPart constructor takes a static control webPart as a parameter, where webPart has failed an authorization check. A static control is one that is declared in the markup of a Web page, rather than being added programmatically. The constructor returns a new instance of an UnauthorizedWebPart control, which is added to the page's control tree in place of webPart. For more information, see UnauthorizedWebPart.

.NET Framework
Available since 2.0
Return to top
Show: