UnauthorizedWebPart Constructor (WebPart)
Collapse the table of content
Expand the table of content

UnauthorizedWebPart Constructor (WebPart)

 

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:
© 2016 Microsoft