UnmanagedFunctionPointerAttributeとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > UnmanagedFunctionPointerAttributeの意味・解説 

UnmanagedFunctionPointerAttribute クラス

メモ : このクラスは、.NET Framework version 2.0 で新しく追加されたものです。

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

名前空間: System.Runtime.InteropServices
アセンブリ: mscorlib (mscorlib.dll 内)
構文構文

<ComVisibleAttribute(True)> _
<AttributeUsageAttribute(AttributeTargets.Delegate, AllowMultiple:=False, Inherited:=False)>
 _
Public NotInheritable Class
 UnmanagedFunctionPointerAttribute
    Inherits Attribute
Dim instance As UnmanagedFunctionPointerAttribute
[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
/** @attribute ComVisibleAttribute(true) */ 
/** @attribute AttributeUsageAttribute(AttributeTargets.Delegate, AllowMultiple=false,
 Inherited=false) */ 
public final class UnmanagedFunctionPointerAttribute
 extends Attribute
ComVisibleAttribute(true) 
AttributeUsageAttribute(AttributeTargets.Delegate, AllowMultiple=false,
 Inherited=false) 
public final class UnmanagedFunctionPointerAttribute
 extends Attribute
解説解説

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

属性の使用方法については、「属性を使用したメタデータの拡張」を参照してください。

継承階層継承階層
System.Object
   System.Attribute
    System.Runtime.InteropServices.UnmanagedFunctionPointerAttribute
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバの場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
UnmanagedFunctionPointerAttribute メンバ
System.Runtime.InteropServices 名前空間
DllImportAttribute クラス
GetDelegateForFunctionPointer
GetFunctionPointerForDelegate

UnmanagedFunctionPointerAttribute コンストラクタ

メモ : このコンストラクタは、.NET Framework version 2.0 で新しく追加されたものです。

呼び出し規約を指定して、UnmanagedFunctionPointerAttribute クラスの新しいインスタンスを初期化します。

名前空間: System.Runtime.InteropServices
アセンブリ: 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
)

パラメータ

callingConvention

指定した呼び出し規約。

解説解説

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

プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
UnmanagedFunctionPointerAttribute クラス
UnmanagedFunctionPointerAttribute メンバ
System.Runtime.InteropServices 名前空間
DllImportAttribute クラス
CallingConvention 列挙体

UnmanagedFunctionPointerAttribute フィールド


パブリック フィールドパブリック フィールド

参照参照

関連項目

UnmanagedFunctionPointerAttribute クラス
System.Runtime.InteropServices 名前空間
DllImportAttribute クラス
GetDelegateForFunctionPointer
GetFunctionPointerForDelegate

UnmanagedFunctionPointerAttribute プロパティ


パブリック プロパティパブリック プロパティ

  名前 説明
パブリック プロパティ CallingConvention 呼び出し規約の値を取得します。
パブリック プロパティ TypeId  派生クラスに実装されている場合は、この Attribute の一意の識別子を取得します。 ( Attribute から継承されます。)
参照参照

関連項目

UnmanagedFunctionPointerAttribute クラス
System.Runtime.InteropServices 名前空間
DllImportAttribute クラス
GetDelegateForFunctionPointer
GetFunctionPointerForDelegate

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 クラス
System.Runtime.InteropServices 名前空間
DllImportAttribute クラス
GetDelegateForFunctionPointer
GetFunctionPointerForDelegate

UnmanagedFunctionPointerAttribute メンバ

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

UnmanagedFunctionPointerAttribute データ型で公開されるメンバを以下の表に示します。


パブリック コンストラクタパブリック コンストラクタ
  名前 説明
パブリック メソッド UnmanagedFunctionPointerAttribute 呼び出し規約を指定して、UnmanagedFunctionPointerAttribute クラスの新しいインスタンスを初期化します。
パブリック フィールドパブリック フィールド
パブリック プロパティパブリック プロパティ
  名前 説明
パブリック プロパティ 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 から継承されます。)
参照参照

関連項目

UnmanagedFunctionPointerAttribute クラス
System.Runtime.InteropServices 名前空間
DllImportAttribute クラス
GetDelegateForFunctionPointer
GetFunctionPointerForDelegate



英和和英テキスト翻訳

英語⇒日本語日本語⇒英語

辞書ショートカット

すべての辞書の索引

「UnmanagedFunctionPointerAttribute」の関連用語

UnmanagedFunctionPointerAttributeのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



UnmanagedFunctionPointerAttributeのページの著作権

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2026 Microsoft.All rights reserved.

©2026 GRAS Group, Inc.RSS