SignatureHelper.GetMethodSigHelper Methode
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
Gibt ein Signaturhilfsprogramm für eine Methode zurück.
Überlädt
| Name | Beschreibung |
|---|---|
| GetMethodSigHelper(Module, Type, Type[]) |
Gibt ein Signaturhilfsprogramm für eine Methode mit einer Standardaufrufkonvention zurück, je nach Modul, Rückgabetyp und Argumenttypen der Methode. |
| GetMethodSigHelper(Module, CallingConvention, Type) |
Gibt ein Signaturhilfsprogramm für eine Methode zurück, die dem Modul der Methode, der nicht verwalteten Aufrufkonvention und dem Rückgabetyp zugeordnet ist. |
| GetMethodSigHelper(CallingConvention, Type) |
Gibt ein Signaturhilfsprogramm für eine Methode zurück, die die nicht verwaltete Aufrufkonvention und den Rückgabetyp der Methode angibt. |
| GetMethodSigHelper(CallingConventions, Type) |
Gibt ein Signaturhilfsprogramm für eine Methode zurück, die die Aufrufkonvention und den Rückgabetyp der Methode angibt. |
| GetMethodSigHelper(Module, CallingConventions, Type) |
Gibt ein Signaturhilfsprogramm für eine Methode zurück, die dem Modul der Methode, dem Aufrufen der Konvention und dem Rückgabetyp der Methode zugeordnet ist. |
GetMethodSigHelper(Module, Type, Type[])
- Quelle:
- SignatureHelper.cs
- Quelle:
- SignatureHelper.cs
- Quelle:
- SignatureHelper.cs
- Quelle:
- SignatureHelper.cs
- Quelle:
- SignatureHelper.cs
Gibt ein Signaturhilfsprogramm für eine Methode mit einer Standardaufrufkonvention zurück, je nach Modul, Rückgabetyp und Argumenttypen der Methode.
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
Parameter
- mod
- Module
Das ModuleBuilder Enthält die Methode, für die die SignatureHelper Angeforderte angefordert wird.
- returnType
- Type
Der Rückgabetyp der Methode oder null für einen ungültigen Rückgabetyp (Sub-Prozedur in Visual Basic).
- parameterTypes
- Type[]
Die Typen der Argumente der Methode oder null wenn die Methode keine Argumente enthält.
Gibt zurück
Das SignatureHelper Objekt für eine Methode.
Ausnahmen
mod ist kein ModuleBuilder.
Hinweise
Diese Überladung erstellt eine Signatur mit einer Standardanrufkonvention.
Um eine Methodensignatur mit benutzerdefinierten Modifizierern zu erstellen, verwenden Sie die GetMethodSigHelper(Module, CallingConventions, Type) Methodenüberladung und dann die AddArgument(Type, Type[], Type[])AddArguments(Type[], Type[][], Type[][]) Methodenüberladungen, um Argumente mit benutzerdefinierten Modifizierern hinzuzufügen.
Gilt für:
GetMethodSigHelper(Module, CallingConvention, Type)
Gibt ein Signaturhilfsprogramm für eine Methode zurück, die dem Modul der Methode, der nicht verwalteten Aufrufkonvention und dem Rückgabetyp zugeordnet ist.
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
Parameter
- mod
- Module
Das ModuleBuilder Enthält die Methode, für die die SignatureHelper Angeforderte angefordert wird.
- unmanagedCallConv
- CallingConvention
Die nicht verwaltete Aufrufkonvention der Methode.
- returnType
- Type
Der Rückgabetyp der Methode oder null für einen ungültigen Rückgabetyp (Sub-Prozedur in Visual Basic).
Gibt zurück
Das SignatureHelper Objekt für eine Methode.
Ausnahmen
mod ist null.
mod ist kein ModuleBuilder.
-oder-
unmanagedCallConv ist eine unbekannte nicht verwaltete Anrufkonvention.
Gilt für:
GetMethodSigHelper(CallingConvention, Type)
Gibt ein Signaturhilfsprogramm für eine Methode zurück, die die nicht verwaltete Aufrufkonvention und den Rückgabetyp der Methode angibt.
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
Parameter
- unmanagedCallingConvention
- CallingConvention
Die nicht verwaltete Aufrufkonvention der Methode.
- returnType
- Type
Der Rückgabetyp der Methode oder null für einen ungültigen Rückgabetyp (Sub-Prozedur in Visual Basic).
Gibt zurück
Das SignatureHelper Objekt für eine Methode.
Ausnahmen
unmanagedCallingConvention ist eine unbekannte nicht verwaltete Anrufkonvention.
Gilt für:
GetMethodSigHelper(CallingConventions, Type)
- Quelle:
- SignatureHelper.cs
- Quelle:
- SignatureHelper.cs
- Quelle:
- SignatureHelper.cs
- Quelle:
- SignatureHelper.cs
- Quelle:
- SignatureHelper.cs
Gibt ein Signaturhilfsprogramm für eine Methode zurück, die die Aufrufkonvention und den Rückgabetyp der Methode angibt.
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
Parameter
- callingConvention
- CallingConventions
Die aufrufende Konvention der Methode.
- returnType
- Type
Der Rückgabetyp der Methode oder null für einen ungültigen Rückgabetyp (Sub-Prozedur in Visual Basic).
Gibt zurück
Das SignatureHelper Objekt für eine Methode.
Gilt für:
GetMethodSigHelper(Module, CallingConventions, Type)
- Quelle:
- SignatureHelper.cs
- Quelle:
- SignatureHelper.cs
- Quelle:
- SignatureHelper.cs
- Quelle:
- SignatureHelper.cs
- Quelle:
- SignatureHelper.cs
Gibt ein Signaturhilfsprogramm für eine Methode zurück, die dem Modul der Methode, dem Aufrufen der Konvention und dem Rückgabetyp der Methode zugeordnet ist.
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
Parameter
- mod
- Module
Das ModuleBuilder Enthält die Methode, für die die SignatureHelper Angeforderte angefordert wird.
- callingConvention
- CallingConventions
Die aufrufende Konvention der Methode.
- returnType
- Type
Der Rückgabetyp der Methode oder null für einen ungültigen Rückgabetyp (Sub-Prozedur in Visual Basic).
Gibt zurück
Das SignatureHelper Objekt für eine Methode.
Ausnahmen
mod ist null.
mod ist kein ModuleBuilder.