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 設定できます。

適用対象

こちらもご覧ください