AspNetHostingPermission 构造函数

定义

初始化 AspNetHostingPermission 类的新实例。

重载

AspNetHostingPermission(PermissionState)

使用指定的 PermissionState 枚举值初始化 AspNetHostingPermission 类的新实例。

AspNetHostingPermission(AspNetHostingPermissionLevel)

使用指定的权限级别初始化 AspNetHostingPermission 类的新实例。

AspNetHostingPermission(PermissionState)

使用指定的 PermissionState 枚举值初始化 AspNetHostingPermission 类的新实例。

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)

参数

另请参阅

适用于