SignatureHelper.GetMethodSigHelper メソッド
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
メソッドのシグネチャ ヘルパーを返します。
GetMethodSigHelper(Module, Type, Type[]) |
標準の呼び出し規約を使用し、メソッドのモジュール、戻り値の型、および引数型を指定して、メソッドのシグネチャ ヘルパーを返します。 |
GetMethodSigHelper(Module, CallingConvention, Type) |
メソッドのモジュール、アンマネージ呼び出し規約、および戻り値の型を指定して、メソッドのシグネチャ ヘルパーを返します。 |
GetMethodSigHelper(CallingConvention, Type) |
メソッドのアンマネージ呼び出し規約、および戻り値の型を指定して、メソッドのシグネチャ ヘルパーを返します。 |
GetMethodSigHelper(CallingConventions, Type) |
メソッドの呼び出し規約、および戻り値の型を指定して、メソッドのシグネチャ ヘルパーを返します。 |
GetMethodSigHelper(Module, CallingConventions, Type) |
メソッドのモジュール、呼び出し規約、戻り値の型を指定して、メソッドのシグネチャのヘルパーを返します。 |
標準の呼び出し規約を使用し、メソッドのモジュール、戻り値の型、および引数型を指定して、メソッドのシグネチャ ヘルパーを返します。
public:
static System::Reflection::Emit::SignatureHelper ^ GetMethodSigHelper(System::Reflection::Module ^ mod, Type ^ returnType, cli::array <Type ^> ^ parameterTypes);
public static System.Reflection.Emit.SignatureHelper GetMethodSigHelper(System.Reflection.Module? mod, Type? returnType, Type[]? parameterTypes);
public static System.Reflection.Emit.SignatureHelper GetMethodSigHelper(System.Reflection.Module mod, Type returnType, Type[] parameterTypes);
static member GetMethodSigHelper : System.Reflection.Module * Type * Type[] -> System.Reflection.Emit.SignatureHelper
Public Shared Function GetMethodSigHelper (mod As Module, returnType As Type, parameterTypes As Type()) As SignatureHelper
パラメーター
- mod
- Module
SignatureHelper
を要求するメソッドが格納されている ModuleBuilder。
- returnType
- Type
メソッドの戻り値の型。戻り値の型が void (Visual Basic では Sub
プロシージャ) である場合は null
。
- parameterTypes
- Type[]
メソッドの引数の型。メソッドに引数がない場合は null
。
戻り値
メソッドの SignatureHelper
オブジェクト。
例外
mod
が ModuleBuilder ではありません。
注釈
このオーバーロードは、標準の呼び出し規則を使用してシグネチャを作成します。
カスタム修飾子を使用してメソッド シグネチャを作成するには、 メソッド オーバーロードをGetMethodSigHelper(Module, CallingConventions, Type)使用し、 または AddArguments(Type[], Type[][], Type[][]) メソッドオーバーロードをAddArgument(Type, Type[], Type[])使用して、カスタム修飾子を含む引数を追加します。
適用対象
.NET 10 およびその他のバージョン
製品 | バージョン |
---|---|
.NET | Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10 |
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0 (package-provided), 2.1 |
メソッドのモジュール、アンマネージ呼び出し規約、および戻り値の型を指定して、メソッドのシグネチャ ヘルパーを返します。
public:
static System::Reflection::Emit::SignatureHelper ^ GetMethodSigHelper(System::Reflection::Module ^ mod, System::Runtime::InteropServices::CallingConvention unmanagedCallConv, Type ^ returnType);
public static System.Reflection.Emit.SignatureHelper GetMethodSigHelper(System.Reflection.Module mod, System.Runtime.InteropServices.CallingConvention unmanagedCallConv, Type returnType);
static member GetMethodSigHelper : System.Reflection.Module * System.Runtime.InteropServices.CallingConvention * Type -> System.Reflection.Emit.SignatureHelper
Public Shared Function GetMethodSigHelper (mod As Module, unmanagedCallConv As CallingConvention, returnType As Type) As SignatureHelper
パラメーター
- mod
- Module
SignatureHelper
を要求するメソッドが格納されている ModuleBuilder。
- unmanagedCallConv
- CallingConvention
メソッドのアンマネージ呼び出し規約。
- returnType
- Type
メソッドの戻り値の型。戻り値の型が void (Visual Basic では Sub
プロシージャ) である場合は null
。
戻り値
メソッドの SignatureHelper
オブジェクト。
例外
mod
が null
です。
適用対象
.NET Framework 4.8.1 およびその他のバージョン
製品 | バージョン |
---|---|
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
メソッドのアンマネージ呼び出し規約、および戻り値の型を指定して、メソッドのシグネチャ ヘルパーを返します。
public:
static System::Reflection::Emit::SignatureHelper ^ GetMethodSigHelper(System::Runtime::InteropServices::CallingConvention unmanagedCallingConvention, Type ^ returnType);
public static System.Reflection.Emit.SignatureHelper GetMethodSigHelper(System.Runtime.InteropServices.CallingConvention unmanagedCallingConvention, Type returnType);
static member GetMethodSigHelper : System.Runtime.InteropServices.CallingConvention * Type -> System.Reflection.Emit.SignatureHelper
Public Shared Function GetMethodSigHelper (unmanagedCallingConvention As CallingConvention, returnType As Type) As SignatureHelper
パラメーター
- unmanagedCallingConvention
- CallingConvention
メソッドのアンマネージ呼び出し規約。
- returnType
- Type
メソッドの戻り値の型。戻り値の型が void (Visual Basic では Sub
プロシージャ) である場合は null
。
戻り値
メソッドの SignatureHelper
オブジェクト。
例外
unmanagedCallConv
が、不明なアンマネージ呼び出し規約です。
適用対象
.NET Framework 4.8.1 およびその他のバージョン
製品 | バージョン |
---|---|
.NET Framework | 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
メソッドの呼び出し規約、および戻り値の型を指定して、メソッドのシグネチャ ヘルパーを返します。
public:
static System::Reflection::Emit::SignatureHelper ^ GetMethodSigHelper(System::Reflection::CallingConventions callingConvention, Type ^ returnType);
public static System.Reflection.Emit.SignatureHelper GetMethodSigHelper(System.Reflection.CallingConventions callingConvention, Type? returnType);
public static System.Reflection.Emit.SignatureHelper GetMethodSigHelper(System.Reflection.CallingConventions callingConvention, Type returnType);
static member GetMethodSigHelper : System.Reflection.CallingConventions * Type -> System.Reflection.Emit.SignatureHelper
Public Shared Function GetMethodSigHelper (callingConvention As CallingConventions, returnType As Type) As SignatureHelper
パラメーター
- callingConvention
- CallingConventions
メソッドの呼び出し規則。
- returnType
- Type
メソッドの戻り値の型。戻り値の型が void (Visual Basic では Sub
プロシージャ) である場合は null
。
戻り値
メソッドの SignatureHelper
オブジェクト。
適用対象
.NET 10 およびその他のバージョン
製品 | バージョン |
---|---|
.NET | Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10 |
.NET Framework | 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0 (package-provided), 2.1 |
メソッドのモジュール、呼び出し規約、戻り値の型を指定して、メソッドのシグネチャのヘルパーを返します。
public:
static System::Reflection::Emit::SignatureHelper ^ GetMethodSigHelper(System::Reflection::Module ^ mod, System::Reflection::CallingConventions callingConvention, Type ^ returnType);
public static System.Reflection.Emit.SignatureHelper GetMethodSigHelper(System.Reflection.Module? mod, System.Reflection.CallingConventions callingConvention, Type? returnType);
public static System.Reflection.Emit.SignatureHelper GetMethodSigHelper(System.Reflection.Module mod, System.Reflection.CallingConventions callingConvention, Type returnType);
static member GetMethodSigHelper : System.Reflection.Module * System.Reflection.CallingConventions * Type -> System.Reflection.Emit.SignatureHelper
Public Shared Function GetMethodSigHelper (mod As Module, callingConvention As CallingConventions, returnType As Type) As SignatureHelper
パラメーター
- mod
- Module
SignatureHelper
を要求するメソッドが格納されている ModuleBuilder。
- callingConvention
- CallingConventions
メソッドの呼び出し規則。
- returnType
- Type
メソッドの戻り値の型。戻り値の型が void (Visual Basic では Sub
プロシージャ) である場合は null
。
戻り値
メソッドの SignatureHelper
オブジェクト。
例外
mod
が null
です。
mod
が ModuleBuilder ではありません。
適用対象
.NET 10 およびその他のバージョン
製品 | バージョン |
---|---|
.NET | Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10 |
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0 (package-provided), 2.1 |
.NET に関するフィードバック
.NET はオープンソース プロジェクトです。 フィードバックを提供するにはリンクを選択します。