Export (0) Print
Expand All

MethodImplAttribute Constructor (MethodImplOptions)

Updated: October 2010

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

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.

Silverlight for Windows Phone Silverlight for Windows Phone

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

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

XNA Framework

Supported in: Xbox 360, Windows Phone OS 7.0

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Date

History

Reason

October 2010

Added the Remarks section.

Customer feedback.

Community Additions

ADD
Show:
© 2014 Microsoft