UnmanagedFunctionPointerAttribute クラス
アセンブリ: mscorlib (mscorlib.dll 内)

<ComVisibleAttribute(True)> _ <AttributeUsageAttribute(AttributeTargets.Delegate, AllowMultiple:=False, Inherited:=False)> _ Public NotInheritable Class UnmanagedFunctionPointerAttribute Inherits Attribute
[ComVisibleAttribute(true)] [AttributeUsageAttribute(AttributeTargets.Delegate, AllowMultiple=false, Inherited=false)] public sealed class UnmanagedFunctionPointerAttribute : Attribute
[ComVisibleAttribute(true)] [AttributeUsageAttribute(AttributeTargets::Delegate, AllowMultiple=false, Inherited=false)] public ref class UnmanagedFunctionPointerAttribute sealed : public Attribute

UnmanagedFunctionPointerAttribute 属性のフィールドは、デリゲートをアンマネージ関数ポインタに移行する際のさまざまな要素を制御します。DllImportAttribute 属性における同一名のフィールドと同じです。これらのフィールドはオプションですが、フィールド名を指定しない場合、UnmanagedFunctionPointerAttribute は無視されます。

System.Attribute
System.Runtime.InteropServices.UnmanagedFunctionPointerAttribute


Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


UnmanagedFunctionPointerAttribute コンストラクタ
アセンブリ: mscorlib (mscorlib.dll 内)

Public Sub New ( _ callingConvention As CallingConvention _ )
Dim callingConvention As CallingConvention Dim instance As New UnmanagedFunctionPointerAttribute(callingConvention)
public UnmanagedFunctionPointerAttribute ( CallingConvention callingConvention )
public: UnmanagedFunctionPointerAttribute ( CallingConvention callingConvention )
public UnmanagedFunctionPointerAttribute ( CallingConvention callingConvention )
public function UnmanagedFunctionPointerAttribute ( callingConvention : CallingConvention )

このメソッドは、アンマネージ コード内のデリゲートに対する呼び出し規約を指定します。これは、UnmanagedFunctionPointerAttribute 属性の最も一般的な使用例です。callingConvention パラメータは、CallingConvention 列挙体の値のいずれかに設定できます。

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


UnmanagedFunctionPointerAttribute フィールド

名前 | 説明 | |
---|---|---|
![]() | BestFitMapping | Unicode 文字を ANSI 文字に変換するときの、最適マッピング動作のオン/オフを切り替えます。 |
![]() | CharSet | 文字列パラメータをメソッドにマーシャリングする方法を示し、名前マングルを制御します。 |
![]() | SetLastError | 属性付きメソッドから戻る前に、呼び出し先が SetLastError Win32 API 関数を呼び出すかどうかを示します。 |
![]() | ThrowOnUnmappableChar | マップできない Unicode 文字 (ANSI の "?" に変換される文字) が見つかったときに、例外をスローするかどうかを指定します。 |

UnmanagedFunctionPointerAttribute プロパティ

名前 | 説明 | |
---|---|---|
![]() | CallingConvention | 呼び出し規約の値を取得します。 |
![]() | TypeId | 派生クラスに実装されている場合は、この Attribute の一意の識別子を取得します。 ( Attribute から継承されます。) |

UnmanagedFunctionPointerAttribute メソッド

名前 | 説明 | |
---|---|---|
![]() | Equals | オーバーロードされます。 ( Attribute から継承されます。) |
![]() | GetCustomAttribute | オーバーロードされます。 アセンブリ、モジュール、型のメンバ、またはメソッド パラメータに適用された指定した型のカスタム属性を取得します。 ( Attribute から継承されます。) |
![]() | GetCustomAttributes | オーバーロードされます。 アセンブリ、モジュール、型のメンバ、またはメソッド パラメータに適用されたカスタム属性の配列を取得します。 ( Attribute から継承されます。) |
![]() | GetHashCode | このインスタンスのハッシュ コードを返します。 ( Attribute から継承されます。) |
![]() | GetType | 現在のインスタンスの Type を取得します。 ( Object から継承されます。) |
![]() | IsDefaultAttribute | 派生クラス内でオーバーライドされたときに、このインスタンスの値が派生クラスの既定値かどうかを示します。 ( Attribute から継承されます。) |
![]() | IsDefined | オーバーロードされます。 指定した型のカスタム属性が、アセンブリ、モジュール、型のメンバ、またはメソッド パラメータに適用されているかどうかを判断します。 ( Attribute から継承されます。) |
![]() | Match | 派生クラス内でオーバーライドされたときに、指定したオブジェクトとこのインスタンスが等しいかどうかを示す値を返します。 ( Attribute から継承されます。) |
![]() | ReferenceEquals | 指定した複数の Object インスタンスが同一かどうかを判断します。 ( Object から継承されます。) |
![]() | ToString | 現在の Object を表す String を返します。 ( Object から継承されます。) |

UnmanagedFunctionPointerAttribute メンバ
アンマネージ コードとの間のアンマネージ関数ポインタとして渡されたデリゲート シグネチャのマーシャリング動作を制御します。このクラスは継承できません。
UnmanagedFunctionPointerAttribute データ型で公開されるメンバを以下の表に示します。

名前 | 説明 | |
---|---|---|
![]() | UnmanagedFunctionPointerAttribute | 呼び出し規約を指定して、UnmanagedFunctionPointerAttribute クラスの新しいインスタンスを初期化します。 |

名前 | 説明 | |
---|---|---|
![]() | BestFitMapping | Unicode 文字を ANSI 文字に変換するときの、最適マッピング動作のオン/オフを切り替えます。 |
![]() | CharSet | 文字列パラメータをメソッドにマーシャリングする方法を示し、名前マングルを制御します。 |
![]() | SetLastError | 属性付きメソッドから戻る前に、呼び出し先が SetLastError Win32 API 関数を呼び出すかどうかを示します。 |
![]() | ThrowOnUnmappableChar | マップできない Unicode 文字 (ANSI の "?" に変換される文字) が見つかったときに、例外をスローするかどうかを指定します。 |

名前 | 説明 | |
---|---|---|
![]() | CallingConvention | 呼び出し規約の値を取得します。 |
![]() | TypeId | 派生クラスに実装されている場合は、この Attribute の一意の識別子を取得します。(Attribute から継承されます。) |

名前 | 説明 | |
---|---|---|
![]() | Equals | オーバーロードされます。 ( Attribute から継承されます。) |
![]() | GetCustomAttribute | オーバーロードされます。 アセンブリ、モジュール、型のメンバ、またはメソッド パラメータに適用された指定した型のカスタム属性を取得します。 (Attribute から継承されます。) |
![]() | GetCustomAttributes | オーバーロードされます。 アセンブリ、モジュール、型のメンバ、またはメソッド パラメータに適用されたカスタム属性の配列を取得します。 (Attribute から継承されます。) |
![]() | GetHashCode | このインスタンスのハッシュ コードを返します。 (Attribute から継承されます。) |
![]() | GetType | 現在のインスタンスの Type を取得します。 (Object から継承されます。) |
![]() | IsDefaultAttribute | 派生クラス内でオーバーライドされたときに、このインスタンスの値が派生クラスの既定値かどうかを示します。 (Attribute から継承されます。) |
![]() | IsDefined | オーバーロードされます。 指定した型のカスタム属性が、アセンブリ、モジュール、型のメンバ、またはメソッド パラメータに適用されているかどうかを判断します。 (Attribute から継承されます。) |
![]() | Match | 派生クラス内でオーバーライドされたときに、指定したオブジェクトとこのインスタンスが等しいかどうかを示す値を返します。 (Attribute から継承されます。) |
![]() | ReferenceEquals | 指定した複数の Object インスタンスが同一かどうかを判断します。 (Object から継承されます。) |
![]() | ToString | 現在の Object を表す String を返します。 (Object から継承されます。) |

Weblioに収録されているすべての辞書からUnmanagedFunctionPointerAttributeを検索する場合は、下記のリンクをクリックしてください。

- UnmanagedFunctionPointerAttributeのページへのリンク