UnmanagedFunctionPointerAttribute(CallingConvention) コンストラクター

定義

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

public:
 UnmanagedFunctionPointerAttribute(System::Runtime::InteropServices::CallingConvention callingConvention);
public UnmanagedFunctionPointerAttribute(System.Runtime.InteropServices.CallingConvention callingConvention);
new System.Runtime.InteropServices.UnmanagedFunctionPointerAttribute : System.Runtime.InteropServices.CallingConvention -> System.Runtime.InteropServices.UnmanagedFunctionPointerAttribute
Public Sub New (callingConvention As CallingConvention)

パラメーター

callingConvention
CallingConvention

指定した呼び出し規約。

注釈

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

適用対象

こちらもご覧ください