共用方式為


AspNetHostingPermission 建構函式

定義

初始化 AspNetHostingPermission 類別的新執行個體。

多載

AspNetHostingPermission(PermissionState)

使用指定的 AspNetHostingPermission 列舉值,初始化 PermissionState 類別的新執行個體。

AspNetHostingPermission(AspNetHostingPermissionLevel)

使用指定的使用權限等級,初始化 AspNetHostingPermission 類別的新執行個體。

AspNetHostingPermission(PermissionState)

使用指定的 AspNetHostingPermission 列舉值,初始化 PermissionState 類別的新執行個體。

public:
 AspNetHostingPermission(System::Security::Permissions::PermissionState state);
public AspNetHostingPermission (System.Security.Permissions.PermissionState state);
new System.Web.AspNetHostingPermission : System.Security.Permissions.PermissionState -> System.Web.AspNetHostingPermission
Public Sub New (state As PermissionState)

參數

state
PermissionState

PermissionState 列舉值。

例外狀況

state 未設定為其中一個 PermissionState 列舉型別值。

適用於

AspNetHostingPermission(AspNetHostingPermissionLevel)

使用指定的使用權限等級,初始化 AspNetHostingPermission 類別的新執行個體。

public:
 AspNetHostingPermission(System::Web::AspNetHostingPermissionLevel level);
public AspNetHostingPermission (System.Web.AspNetHostingPermissionLevel level);
new System.Web.AspNetHostingPermission : System.Web.AspNetHostingPermissionLevel -> System.Web.AspNetHostingPermission
Public Sub New (level As AspNetHostingPermissionLevel)

參數

另請參閱

適用於