Freigeben über


MethodImplAttribute Constructor (MethodImplOptions)

Microsoft Silverlight will reach end of support after October 2021. Learn more.

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)

Syntax

'Declaration
Public Sub New ( _
    methodImplOptions As MethodImplOptions _
)
public MethodImplAttribute(
    MethodImplOptions methodImplOptions
)

Parameters

Remarks

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.

Version Information

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

Platforms

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

Change History

Date

History

Reason

October 2010

Added the Remarks section.

Customer feedback.