MethodCodeType Enumeráció

Definíció

Meghatározza a metódus implementálásának módját.

Ez a felsorolás támogatja a tagértékek bitenkénti kombinációját.

Ez az API a termékinfrastruktúrát támogatja, és közvetlenül a kódból nem használható.

public enum class MethodCodeType
[System.Flags]
[System.Serializable]
public enum MethodCodeType
[System.Serializable]
[System.Runtime.InteropServices.ComVisible(true)]
public enum MethodCodeType
public enum MethodCodeType
[<System.Flags>]
[<System.Serializable>]
type MethodCodeType = 
[<System.Serializable>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type MethodCodeType = 
type MethodCodeType = 
Public Enum MethodCodeType
Öröklődés
MethodCodeType
Attribútumok

Mezők

Name Érték Description
IL 0

Azt határozza meg, hogy a metódus implementálása Microsoft köztes nyelven (MSIL) történik.

Native 1

Megadja, hogy a metódus natív kódban legyen implementálva.

OPTIL 2

Megadja, hogy a metódus implementálása optimalizált köztes nyelven (OPTIL) legyen.

Runtime 3

Megadja, hogy a metódus implementálását a futtatókörnyezet adja meg.

Megjegyzések

A MethodImplAttribute-val együtt használva

A System.Runtime.CompilerServices osztályai csak fordítóírók számára használhatók.

A következőre érvényes: