MethodImplAttribute 构造函数

定义

初始化 MethodImplAttribute 类的新实例。

重载

名称 说明
MethodImplAttribute()

初始化 MethodImplAttribute 类的新实例。

MethodImplAttribute(Int16)

使用指定的MethodImplAttribute值初始化类的新实例MethodImplOptions

MethodImplAttribute(MethodImplOptions)

使用指定的MethodImplAttribute值初始化类的新实例MethodImplOptions

MethodImplAttribute()

Source:
MethodImplAttribute.cs
Source:
MethodImplAttribute.cs
Source:
MethodImplAttribute.cs
Source:
MethodImplAttribute.cs
Source:
MethodImplAttribute.cs

初始化 MethodImplAttribute 类的新实例。

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

适用于

MethodImplAttribute(Int16)

Source:
MethodImplAttribute.cs
Source:
MethodImplAttribute.cs
Source:
MethodImplAttribute.cs
Source:
MethodImplAttribute.cs
Source:
MethodImplAttribute.cs

使用指定的MethodImplAttribute值初始化类的新实例MethodImplOptions

public:
 MethodImplAttribute(short value);
public MethodImplAttribute(short value);
new System.Runtime.CompilerServices.MethodImplAttribute : int16 -> System.Runtime.CompilerServices.MethodImplAttribute
Public Sub New (value As Short)

参数

value
Int16

表示所需 MethodImplOptions 值的位掩码,该值指定特性化方法的属性。

适用于

MethodImplAttribute(MethodImplOptions)

Source:
MethodImplAttribute.cs
Source:
MethodImplAttribute.cs
Source:
MethodImplAttribute.cs
Source:
MethodImplAttribute.cs
Source:
MethodImplAttribute.cs

使用指定的MethodImplAttribute值初始化类的新实例MethodImplOptions

public:
 MethodImplAttribute(System::Runtime::CompilerServices::MethodImplOptions methodImplOptions);
public MethodImplAttribute(System.Runtime.CompilerServices.MethodImplOptions methodImplOptions);
new System.Runtime.CompilerServices.MethodImplAttribute : System.Runtime.CompilerServices.MethodImplOptions -> System.Runtime.CompilerServices.MethodImplAttribute
Public Sub New (methodImplOptions As MethodImplOptions)

参数

methodImplOptions
MethodImplOptions

一个 MethodImplOptions 值,该值指定特性化方法的属性。

注解

此构造函数设置元数据表中的 CorMethodImpl 位字段。 可以通过调用 MethodInfo.GetMethodImplementationFlagsConstructorInfo.GetMethodImplementationFlags 方法在运行时检索这些标志的值。

另请参阅

适用于