SecurityCriticalAttribute 建構函式

定義

初始化 SecurityCriticalAttribute 類別的新執行個體。Initializes a new instance of the SecurityCriticalAttribute class.

多載

SecurityCriticalAttribute()

初始化 SecurityCriticalAttribute 類別的新執行個體。Initializes a new instance of the SecurityCriticalAttribute class.

SecurityCriticalAttribute(SecurityCriticalScope)

使用指定的範圍,初始化 SecurityCriticalAttribute 類別的新執行個體。Initializes a new instance of the SecurityCriticalAttribute class with the specified scope.

SecurityCriticalAttribute()

初始化 SecurityCriticalAttribute 類別的新執行個體。Initializes a new instance of the SecurityCriticalAttribute class.

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

SecurityCriticalAttribute(SecurityCriticalScope)

使用指定的範圍,初始化 SecurityCriticalAttribute 類別的新執行個體。Initializes a new instance of the SecurityCriticalAttribute class with the specified scope.

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

其中一個列舉值,指定屬性的範圍。One of the enumeration values that specifies the scope of the attribute.

備註

提供此函式的目的是為了與 .NET Framework 版本2.0 透明度模型相容。This constructor is provided for compatibility with the .NET Framework version 2.0 transparency model. 它並不適用于 .NET Framework 4.NET Framework 4It does not apply to the .NET Framework 4.NET Framework 4. 如需詳細資訊,請參閱安全性透明程式碼,層級 2For more information, see Security-Transparent Code, Level 2.

適用於