MethodImplAttribute Constructors

Definition

Initializes a new instance of the MethodImplAttribute class.

Overloads

MethodImplAttribute()

Initializes a new instance of the MethodImplAttribute class.

MethodImplAttribute(Int16)

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

MethodImplAttribute(MethodImplOptions)

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

MethodImplAttribute()

Source:
MethodImplAttribute.cs
Source:
MethodImplAttribute.cs
Source:
MethodImplAttribute.cs

Initializes a new instance of the MethodImplAttribute class.

public:
 MethodImplAttribute();
public MethodImplAttribute ();
Public Sub New ()

Applies to

MethodImplAttribute(Int16)

Source:
MethodImplAttribute.cs
Source:
MethodImplAttribute.cs
Source:
MethodImplAttribute.cs

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

public:
 MethodImplAttribute(short value);
public MethodImplAttribute (short value);
new System.Runtime.CompilerServices.MethodImplAttribute : int16 -> System.Runtime.CompilerServices.MethodImplAttribute
Public Sub New (value As Short)

Parameters

value
Int16

A bitmask representing the desired MethodImplOptions value which specifies properties of the attributed method.

Applies to

MethodImplAttribute(MethodImplOptions)

Source:
MethodImplAttribute.cs
Source:
MethodImplAttribute.cs
Source:
MethodImplAttribute.cs

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

public:
 MethodImplAttribute(System::Runtime::CompilerServices::MethodImplOptions methodImplOptions);
public MethodImplAttribute (System.Runtime.CompilerServices.MethodImplOptions methodImplOptions);
new System.Runtime.CompilerServices.MethodImplAttribute : System.Runtime.CompilerServices.MethodImplOptions -> System.Runtime.CompilerServices.MethodImplAttribute
Public Sub New (methodImplOptions As MethodImplOptions)

Parameters

methodImplOptions
MethodImplOptions

A MethodImplOptions value specifying properties of the attributed method.

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.

See also

Applies to