UnauthorizedWebPart Constructor (String, String, String, String)

 
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 dynamic WebPart control (or server or user control) fails authorization.

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

public UnauthorizedWebPart(
	string originalID,
	string originalTypeName,
	string originalPath,
	string genericWebPartID
)

Parameters

originalID
Type: System.String

A string that contains the ID of the original server or user control that was added to a WebPartZoneBase to participate in a Web Parts application.

originalTypeName
Type: System.String

A string containing the name of the original control's type.

originalPath
Type: System.String

A string containing the relative virtual path to the user control, if the original control is a user control.

genericWebPartID
Type: System.String

A string containing the ID of the GenericWebPart control that wraps the original server or user control.

The UnauthorizedWebPart constructor is called when a dynamic WebPart or other server control fails its authorization check. A dynamic control is one that is added to a page programmatically, or by a user from a catalog of Web Parts controls. The UnauthorizedWebPart constructor returns a new instance of an UnauthorizedWebPart control to replace the dynamic control that failed authorization. For more information, see UnauthorizedWebPart.

.NET Framework
Available since 2.0
Return to top
Show: