WebPartAuthorizationEventArgs(Type, String, String, Boolean) 构造函数

定义

初始化 WebPartAuthorizationEventArgs 类的新实例。

public:
 WebPartAuthorizationEventArgs(Type ^ type, System::String ^ path, System::String ^ authorizationFilter, bool isShared);
public WebPartAuthorizationEventArgs (Type type, string path, string authorizationFilter, bool isShared);
new System.Web.UI.WebControls.WebParts.WebPartAuthorizationEventArgs : Type * string * string * bool -> System.Web.UI.WebControls.WebParts.WebPartAuthorizationEventArgs
Public Sub New (type As Type, path As String, authorizationFilter As String, isShared As Boolean)

参数

type
Type

被检查授权情况的控件的 Type

path
String

被授权的控件的源文件的相对应用程序路径(如果该控件为用户控件)。

authorizationFilter
String

分配给 AuthorizationFilter 控件的 WebPart 属性的任意字符串值,该值用于授权控件是否可以添加到页。

isShared
Boolean

指示被检查授权情况的控件是否为共享控件,共享意味着它对应用程序的许多用户或所有用户可见,并且其 IsShared 属性值设为 true

适用于