Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

MethodImplAttributes Enumeration

Specifies flags for the attributes of a method implementation.

This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.

[Visual Basic]
<Flags>
<Serializable>
Public Enum MethodImplAttributes
[C#]
[Flags]
[Serializable]
public enum MethodImplAttributes
[C++]
[Flags]
[Serializable]
__value public enum MethodImplAttributes
[JScript]
public
   Flags
 Serializable
enum MethodImplAttributes

Remarks

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

Members

Member name Description Value
CodeTypeMask

Supported by the .NET Compact Framework.

Specifies flags about code type. 3
ForwardRef

Supported by the .NET Compact Framework.

Specifies that the method is not defined. 16
IL

Supported by the .NET Compact Framework.

Specifies that the method implementation is in Microsoft intermediate language (MSIL). 0
InternalCall

Supported by the .NET Compact Framework.

Specifies an internal call. 4096
Managed

Supported by the .NET Compact Framework.

Specifies that the method implementation is managed, otherwise unmanaged. 0
ManagedMask

Supported by the .NET Compact Framework.

Specifies whether the code is managed or unmanaged. 4
MaxMethodImplVal

Supported by the .NET Compact Framework.

Specifies a range check value. 65535
Native

Supported by the .NET Compact Framework.

Specifies that the method implementation is native. 1
NoInlining

Supported by the .NET Compact Framework.

Specifies that the method cannot be inlined. 8
OPTIL

Supported by the .NET Compact Framework.

This member supports the .NET Framework infrastructure and is not intended to be used directly from your code. 2
PreserveSig

Supported by the .NET Compact Framework.

Specifies that the method signature is exported exactly as declared. 128
Runtime

Supported by the .NET Compact Framework.

Specifies that the method implementation is provided by the runtime. 3
Synchronized

Supported by the .NET Compact Framework.

Specifies that the method is single-threaded through the body. You can also use the C# lock statement or the Visual Basic Lock function for this purpose. 32
Unmanaged

Supported by the .NET Compact Framework.

Specifies that the method implementation is unmanaged, otherwise managed. 4

Requirements

Namespace: System.Reflection

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework

Assembly: Mscorlib (in Mscorlib.dll)

See Also

System.Reflection Namespace | System.Reflection

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.