MethodImplAttribute Constructor (MethodImplOptions)
Collapse the table of content
Expand the table of content

MethodImplAttribute Constructor (MethodImplOptions)

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

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

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
)

Parameters

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.

Windows Phone

 Specifying the Synchronized option for the MethodImplAttribute constructor is not supported and will not result in synchronized behavior.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft