Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
UnauthorizedWebPart Constructor (WebPart)

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)

'Declaration
Public Sub New ( _
	webPart As 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

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0
Show:
© 2015 Microsoft