HostProtectionAttribute 构造函数

定义

初始化 HostProtectionAttribute 类的新实例。

重载

名称 说明
HostProtectionAttribute()

使用默认值初始化类的新实例 HostProtectionAttribute

HostProtectionAttribute(SecurityAction)

使用指定的HostProtectionAttribute值初始化类的新实例SecurityAction

HostProtectionAttribute()

Source:
HostProtectionAttribute.cs
Source:
HostProtectionAttribute.cs
Source:
HostProtectionAttribute.cs
Source:
HostProtectionAttribute.cs
Source:
HostProtectionAttribute.cs
Source:
HostProtectionAttribute.cs
Source:
HostProtectionAttribute.cs

使用默认值初始化类的新实例 HostProtectionAttribute

public:
 HostProtectionAttribute();
public HostProtectionAttribute();
Public Sub New ()

注解

此构造函数创建所有 HostProtectionAttribute 布尔属性设置为 false.

适用于

HostProtectionAttribute(SecurityAction)

Source:
HostProtectionAttribute.cs
Source:
HostProtectionAttribute.cs
Source:
HostProtectionAttribute.cs
Source:
HostProtectionAttribute.cs
Source:
HostProtectionAttribute.cs
Source:
HostProtectionAttribute.cs
Source:
HostProtectionAttribute.cs

使用指定的HostProtectionAttribute值初始化类的新实例SecurityAction

public:
 HostProtectionAttribute(System::Security::Permissions::SecurityAction action);
public HostProtectionAttribute(System.Security.Permissions.SecurityAction action);
new System.Security.Permissions.HostProtectionAttribute : System.Security.Permissions.SecurityAction -> System.Security.Permissions.HostProtectionAttribute
Public Sub New (action As SecurityAction)

参数

action
SecurityAction

其中一个 SecurityAction 值。

例外

action 不是 LinkDemand

注解

不应使用此构造函数。 它适用于基础结构使用。

适用于