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 中的类仅用于编译器编写器。

适用于