MethodImplAttribute Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Feedback
https://aka.ms/ContentUserFeedback.
Binnenkort beschikbaar: In de loop van 2024 zullen we GitHub-problemen geleidelijk uitfaseren als het feedbackmechanisme voor inhoud en deze vervangen door een nieuw feedbacksysteem. Zie voor meer informatie:Feedback verzenden en weergeven voor