MethodCodeType 列舉

定義

定義方法實作的方式。

此列舉支援其成員值的位元組合。

此 API 支援此產品基礎結構,但無法直接用於程式碼之中。

public enum class MethodCodeType
public enum MethodCodeType
[System.Flags]
[System.Serializable]
public enum MethodCodeType
[System.Serializable]
[System.Runtime.InteropServices.ComVisible(true)]
public enum MethodCodeType
type MethodCodeType = 
[<System.Flags>]
[<System.Serializable>]
type MethodCodeType = 
[<System.Serializable>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type MethodCodeType = 
Public Enum MethodCodeType
繼承
MethodCodeType
屬性

欄位

IL 0

指定方法以 Microsoft 中繼語言 (MSIL) 實作。

Native 1

指定方法實作是採用機器碼。

OPTIL 2

指定方法實作是採用最佳化中繼語言 (OPTIL)。

Runtime 3

指定方法實作由執行階段提供。

備註

MethodImplAttribute 搭配使用。

System.Runtime.CompilerServices 中的類別僅供編譯程式寫入器使用。

適用於