AspNetHostingPermission 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化 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)