This documentation is archived and is not being maintained.

MethodImplAttribute Constructor (MethodImplOptions)

Initializes a new instance of the MethodImplAttribute class with the specified MethodImplOptions value.

Namespace:  System.Runtime.CompilerServices
Assembly:  mscorlib (in mscorlib.dll)

public MethodImplAttribute(
	MethodImplOptions methodImplOptions


Type: System.Runtime.CompilerServices.MethodImplOptions
A MethodImplOptions value specifying properties of the attributed method.

This constructor sets the CorMethodImpl bit fields in the metadata table. The value of these flags can be retrieved at run time by calling the MethodInfo.GetMethodImplementationFlags or ConstructorInfo.GetMethodImplementationFlags method.

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Portable Class Library

Supported in: Portable Class Library

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.