MethodImplAttributes Enumeration
Assembly: mscorlib (in mscorlib.dll)
'Declaration <SerializableAttribute> _ <ComVisibleAttribute(True)> _ Public Enumeration MethodImplAttributes 'Usage Dim instance As MethodImplAttributes
/** @attribute SerializableAttribute() */ /** @attribute ComVisibleAttribute(true) */ public enum MethodImplAttributes
SerializableAttribute ComVisibleAttribute(true) public enum MethodImplAttributes
| Member name | Description | |
|---|---|---|
![]() | CodeTypeMask | Specifies flags about code type. |
![]() | ForwardRef | Specifies that the method is not defined. |
![]() | IL | Specifies that the method implementation is in Microsoft intermediate language (MSIL). |
![]() | InternalCall | Specifies an internal call. |
![]() | Managed | Specifies that the method implementation is managed, otherwise unmanaged. |
![]() | ManagedMask | Specifies whether the code is managed or unmanaged. |
![]() | MaxMethodImplVal | Specifies a range check value. |
![]() | Native | Specifies that the method implementation is native. |
![]() | NoInlining | Specifies that the method cannot be inlined. |
![]() | OPTIL | Specifies that the method implementation is in Optimized Intermediate Language (OPTIL). |
![]() | PreserveSig | Specifies that the method signature is exported exactly as declared. |
![]() | Runtime | Specifies that the method implementation is provided by the runtime. |
![]() | Synchronized | Specifies that the method is single-threaded through the body. Static methods (Shared in Visual Basic) lock on the type, while instance methods lock on the instance. You can also use the C# lock Statement (C# Reference) or the Visual Basic Lock, Unlock Functions for this purpose. |
![]() | Unmanaged | Specifies that the method implementation is unmanaged, otherwise managed. |
The attributes are combined using the bitwise OR operation as follows:
Code Implementation Masks
-
CodeTypeMask
-
IL
-
Native
-
OPTIL
-
Runtime
Managed Masks
-
ManagedMask
-
Unmanaged
-
Managed
Implementation Information and Interop Masks
-
ForwardRef
-
PreserveSig
-
InternalCall
-
Synchronized
-
NoInlining
-
MaxMethodImplVal
Note |
|---|
| Locking on the instance or on the type, as with the Synchronized flag, is not recommended for public types because code other than your own can take locks on public types and instances. This might cause deadlocks or other synchronization problems. |
Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.
