MethodImplAttribute 建構函式

定義

初始化 MethodImplAttribute 類別的新執行個體。

多載

MethodImplAttribute()

初始化 MethodImplAttribute 類別的新執行個體。

MethodImplAttribute(Int16)

使用指定的 MethodImplOptions 值,初始化 MethodImplAttribute 類別的新執行個體。

MethodImplAttribute(MethodImplOptions)

使用指定的 MethodImplOptions 值,初始化 MethodImplAttribute 類別的新執行個體。

MethodImplAttribute()

來源:
MethodImplAttribute.cs
來源:
MethodImplAttribute.cs
來源:
MethodImplAttribute.cs

初始化 MethodImplAttribute 類別的新執行個體。

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

適用於

MethodImplAttribute(Int16)

來源:
MethodImplAttribute.cs
來源:
MethodImplAttribute.cs
來源:
MethodImplAttribute.cs

使用指定的 MethodImplOptions 值,初始化 MethodImplAttribute 類別的新執行個體。

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)

來源:
MethodImplAttribute.cs
來源:
MethodImplAttribute.cs
來源:
MethodImplAttribute.cs

使用指定的 MethodImplOptions 值,初始化 MethodImplAttribute 類別的新執行個體。

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 值,指定屬性化 (Attributed) 方法的屬性 (Property)。

備註

此建構函式會設定元數據表中的 CorMethodImpl 位欄位。 呼叫 或 ConstructorInfo.GetMethodImplementationFlags 方法,即可在運行時間MethodInfo.GetMethodImplementationFlags擷取這些旗標的值。

另請參閱

適用於