MethodImplAttribute 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化 MethodImplAttribute 類別的新執行個體。
多載
| 名稱 | Description |
|---|---|
| MethodImplAttribute() |
初始化 MethodImplAttribute 類別的新執行個體。 |
| MethodImplAttribute(Int16) |
初始化一個以指定MethodImplAttribute值的新MethodImplOptions類別實例。 |
| MethodImplAttribute(MethodImplOptions) |
初始化一個以指定MethodImplAttribute值的新MethodImplOptions類別實例。 |
MethodImplAttribute()
初始化 MethodImplAttribute 類別的新執行個體。
public:
MethodImplAttribute();
public MethodImplAttribute();
Public Sub New ()
適用於
MethodImplAttribute(Int16)
初始化一個以指定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)
初始化一個以指定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.GetMethodImplementationFlags or ConstructorInfo.GetMethodImplementationFlags 方法取得。