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

適用於