Windows Dev Center

The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

WebPartAuthorizationEventArgs Constructor

Initializes a new instance of the WebPartAuthorizationEventArgs class.

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

public WebPartAuthorizationEventArgs(
	Type type,
	string path,
	string authorizationFilter,
	bool isShared


Type: System.Type

The Type of the control being checked for authorization.

Type: System.String

The relative application path to the source file for the control being authorized, if the control is a user control.

Type: System.String

An arbitrary string value assigned to the AuthorizationFilter property of a WebPart control, used for authorizing whether a control can be added to a page.

Type: System.Boolean

Indicates whether the control being checked for authorization is a shared control, meaning that it is visible to many or all users of the application, and its IsShared property value is set to true.

.NET Framework

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