CompilationRelaxationsAttribute 构造函数

定义

初始化 CompilationRelaxationsAttribute 类的新实例。Initializes a new instance of the CompilationRelaxationsAttribute class.

重载

CompilationRelaxationsAttribute(Int32)

使用指定的编译松弛法初始化 CompilationRelaxationsAttribute 类的新实例。Initializes a new instance of the CompilationRelaxationsAttribute class with the specified compilation relaxations.

CompilationRelaxationsAttribute(CompilationRelaxations)

使用指定的 CompilationRelaxationsAttribute 值初始化 CompilationRelaxations 类的新实例。Initializes a new instance of the CompilationRelaxationsAttribute class with the specified CompilationRelaxations value.

CompilationRelaxationsAttribute(Int32)

使用指定的编译松弛法初始化 CompilationRelaxationsAttribute 类的新实例。Initializes a new instance of the CompilationRelaxationsAttribute class with the specified compilation relaxations.

public:
 CompilationRelaxationsAttribute(int relaxations);
public CompilationRelaxationsAttribute (int relaxations);
new System.Runtime.CompilerServices.CompilationRelaxationsAttribute : int -> System.Runtime.CompilerServices.CompilationRelaxationsAttribute
Public Sub New (relaxations As Integer)

参数

relaxations
Int32

编译松弛法。The compilation relaxations.

注解

CompilationRelaxationsAttribute 特性应用于程序集以指定程序集编译参数。Apply the CompilationRelaxationsAttribute attribute to assemblies to specify assembly compilation parameters.

Microsoft .NET 框架的1.0 版中将忽略此属性。This attribute is ignored in version 1.0 of the Microsoft .NET Framework.

另请参阅

CompilationRelaxationsAttribute(CompilationRelaxations)

使用指定的 CompilationRelaxationsAttribute 值初始化 CompilationRelaxations 类的新实例。Initializes a new instance of the CompilationRelaxationsAttribute class with the specified CompilationRelaxations value.

public:
 CompilationRelaxationsAttribute(System::Runtime::CompilerServices::CompilationRelaxations relaxations);
public CompilationRelaxationsAttribute (System.Runtime.CompilerServices.CompilationRelaxations relaxations);
new System.Runtime.CompilerServices.CompilationRelaxationsAttribute : System.Runtime.CompilerServices.CompilationRelaxations -> System.Runtime.CompilerServices.CompilationRelaxationsAttribute
Public Sub New (relaxations As CompilationRelaxations)

参数

relaxations
CompilationRelaxations

CompilationRelaxations 值之一。One of the CompilationRelaxations values.

注解

CompilationRelaxationsAttribute 特性应用于程序集以指定程序集编译参数。Apply the CompilationRelaxationsAttribute attribute to assemblies to specify assembly compilation parameters.

Microsoft .NET 框架的1.0 版中将忽略此属性。This attribute is ignored in version 1.0 of the Microsoft .NET Framework.

另请参阅

适用于