SignatureHelper.GetMethodSigHelper Metodo

Definizione

Restituisce un helper di firma per un metodo.

Overload

Nome Descrizione
GetMethodSigHelper(Module, Type, Type[])

Restituisce un helper di firma per un metodo con una convenzione di chiamata standard, in base al modulo del metodo, al tipo restituito e ai tipi di argomento.

GetMethodSigHelper(Module, CallingConvention, Type)

Restituisce un helper di firma per un metodo in base al modulo del metodo, alla convenzione di chiamata non gestita e al tipo restituito.

GetMethodSigHelper(CallingConvention, Type)

Restituisce un helper di firma per un metodo in base alla convenzione di chiamata non gestita del metodo e al tipo restituito.

GetMethodSigHelper(CallingConventions, Type)

Restituisce un helper di firma per un metodo in base alla convenzione di chiamata del metodo e al tipo restituito.

GetMethodSigHelper(Module, CallingConventions, Type)

Restituisce un helper di firma per un metodo in base al modulo del metodo, alla convenzione di chiamata e al tipo restituito.

GetMethodSigHelper(Module, Type, Type[])

Origine:
SignatureHelper.cs
Origine:
SignatureHelper.cs
Origine:
SignatureHelper.cs
Origine:
SignatureHelper.cs
Origine:
SignatureHelper.cs

Restituisce un helper di firma per un metodo con una convenzione di chiamata standard, in base al modulo del metodo, al tipo restituito e ai tipi di argomento.

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

Parametri

mod
Module

Oggetto ModuleBuilder contenente il metodo per il quale viene richiesto l'oggetto SignatureHelper .

returnType
Type

Tipo restituito del metodo o null per un tipo restituito void (Sub procedure in Visual Basic).

parameterTypes
Type[]

Tipi degli argomenti del metodo o null se il metodo non dispone di argomenti.

Valori restituiti

Oggetto SignatureHelper per un metodo.

Eccezioni

mod è null.

oppure

Un elemento di parameterTypes è null.

mod non è un oggetto ModuleBuilder.

Commenti

Questo overload crea una firma con una convenzione di chiamata standard.

Per creare una firma del metodo con modificatori personalizzati, usare l'overload del GetMethodSigHelper(Module, CallingConventions, Type) metodo e quindi usare gli overload del AddArgument(Type, Type[], Type[]) metodo o AddArguments(Type[], Type[][], Type[][]) per aggiungere argomenti con modificatori personalizzati.

Si applica a

GetMethodSigHelper(Module, CallingConvention, Type)

Restituisce un helper di firma per un metodo in base al modulo del metodo, alla convenzione di chiamata non gestita e al tipo restituito.

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

Parametri

mod
Module

Oggetto ModuleBuilder contenente il metodo per il quale viene richiesto l'oggetto SignatureHelper .

unmanagedCallConv
CallingConvention

Convenzione di chiamata non gestita del metodo .

returnType
Type

Tipo restituito del metodo o null per un tipo restituito void (Sub procedure in Visual Basic).

Valori restituiti

Oggetto SignatureHelper per un metodo.

Eccezioni

mod è null.

mod non è un oggetto ModuleBuilder.

oppure

unmanagedCallConv è una convenzione di chiamata non gestita sconosciuta.

Si applica a

GetMethodSigHelper(CallingConvention, Type)

Restituisce un helper di firma per un metodo in base alla convenzione di chiamata non gestita del metodo e al tipo restituito.

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

Parametri

unmanagedCallingConvention
CallingConvention

Convenzione di chiamata non gestita del metodo .

returnType
Type

Tipo restituito del metodo o null per un tipo restituito void (Sub procedure in Visual Basic).

Valori restituiti

Oggetto SignatureHelper per un metodo.

Eccezioni

unmanagedCallingConvention è una convenzione di chiamata non gestita sconosciuta.

Si applica a

GetMethodSigHelper(CallingConventions, Type)

Origine:
SignatureHelper.cs
Origine:
SignatureHelper.cs
Origine:
SignatureHelper.cs
Origine:
SignatureHelper.cs
Origine:
SignatureHelper.cs

Restituisce un helper di firma per un metodo in base alla convenzione di chiamata del metodo e al tipo restituito.

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

Parametri

callingConvention
CallingConventions

Convenzione di chiamata del metodo .

returnType
Type

Tipo restituito del metodo o null per un tipo restituito void (Sub procedure in Visual Basic).

Valori restituiti

Oggetto SignatureHelper per un metodo.

Si applica a

GetMethodSigHelper(Module, CallingConventions, Type)

Origine:
SignatureHelper.cs
Origine:
SignatureHelper.cs
Origine:
SignatureHelper.cs
Origine:
SignatureHelper.cs
Origine:
SignatureHelper.cs

Restituisce un helper di firma per un metodo in base al modulo del metodo, alla convenzione di chiamata e al tipo restituito.

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

Parametri

mod
Module

Oggetto ModuleBuilder contenente il metodo per il quale viene richiesto l'oggetto SignatureHelper .

callingConvention
CallingConventions

Convenzione di chiamata del metodo .

returnType
Type

Tipo restituito del metodo o null per un tipo restituito void (Sub procedure in Visual Basic).

Valori restituiti

Oggetto SignatureHelper per un metodo.

Eccezioni

mod è null.

mod non è un oggetto ModuleBuilder.

Si applica a