SecurityCriticalAttribute 构造函数

定义

初始化 SecurityCriticalAttribute 类的新实例。

重载

SecurityCriticalAttribute()

初始化 SecurityCriticalAttribute 类的新实例。

SecurityCriticalAttribute(SecurityCriticalScope)

用指定范围初始化 SecurityCriticalAttribute 类的新实例。

SecurityCriticalAttribute()

Source:
SecurityCriticalAttribute.cs
Source:
SecurityCriticalAttribute.cs
Source:
SecurityCriticalAttribute.cs

初始化 SecurityCriticalAttribute 类的新实例。

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

适用于

SecurityCriticalAttribute(SecurityCriticalScope)

Source:
SecurityCriticalAttribute.cs
Source:
SecurityCriticalAttribute.cs
Source:
SecurityCriticalAttribute.cs

用指定范围初始化 SecurityCriticalAttribute 类的新实例。

public:
 SecurityCriticalAttribute(System::Security::SecurityCriticalScope scope);
public SecurityCriticalAttribute (System.Security.SecurityCriticalScope scope);
new System.Security.SecurityCriticalAttribute : System.Security.SecurityCriticalScope -> System.Security.SecurityCriticalAttribute
Public Sub New (scope As SecurityCriticalScope)

参数

scope
SecurityCriticalScope

用于指定特性范围的枚举值之一。

注解

提供此构造函数是为了与 .NET Framework 版本 2.0 透明度模型兼容。 它不适用于.NET Framework 4。 有关详细信息,请参阅 安全透明代码级别 2

适用于