WebPartAuthorizationEventArgs(Type, String, String, Boolean) Constructor

Definition

Initializes a new instance of the WebPartAuthorizationEventArgs class.

C#
public WebPartAuthorizationEventArgs(Type type, string path, string authorizationFilter, bool isShared);

Parameters

type
Type

The Type of the control being checked for authorization.

path
String

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

authorizationFilter
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.

isShared
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.

Applies to

Product Versions
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1