メソッドを実装する方法の詳細を定義します。
この型のすべてのメンバの一覧については、MethodImplAttribute メンバ を参照してください。
System.Object
System.Attribute
System.Runtime.CompilerServices.MethodImplAttribute
<AttributeUsage(AttributeTargets.Constructor Or _
AttributeTargets.Method)>
<Serializable>
NotInheritable Public Class MethodImplAttribute Inherits Attribute
[C#]
[AttributeUsage(AttributeTargets.Constructor |
AttributeTargets.Method)]
[Serializable]
public sealed class MethodImplAttribute : Attribute
[C++]
[AttributeUsage(AttributeTargets::Constructor |
AttributeTargets::Method)]
[Serializable]
public __gc __sealed class MethodImplAttribute : public Attribute
[JScript]
public
AttributeUsage(AttributeTargets.Constructor |
AttributeTargets.Method)
Serializable
class MethodImplAttribute extends Attribute
スレッドセーフ
この型の public static (Visual Basicでは Shared) のすべてのメンバは、マルチスレッド操作で安全に使用できます。インスタンスのメンバの場合は、スレッドセーフであるとは限りません。
解説
この属性は、メソッドまたはコンストラクタに適用できます。
必要条件
名前空間: System.Runtime.CompilerServices
プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ, .NET Compact Framework - Windows CE .NET
アセンブリ: Mscorlib (Mscorlib.dll 内)
参照
MethodImplAttribute メンバ | System.Runtime.CompilerServices 名前空間