語言

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。

適用於