AspNetHostingPermission 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化 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)
参数
一个 AspNetHostingPermissionLevel 枚举值。