SignatureHelper.GetMethodSigHelper Método

Definición

Devuelve un asistente para las firmas de un método.

Sobrecargas

GetMethodSigHelper(Module, Type, Type[])

Devuelve un asistente para las firmas de un método con una convención de llamada estándar, a partir del módulo, el tipo de valor devuelto y los tipos de argumento del método.

GetMethodSigHelper(Module, CallingConvention, Type)

Devuelve un asistente para las firmas de un método a partir del módulo, la convención de llamada no administrada y el tipo de valor devuelto del método.

GetMethodSigHelper(CallingConvention, Type)

Devuelve un asistente para las firmas de un método a partir del módulo, la convención de llamada no administrada y el tipo de valor devuelto del método.

GetMethodSigHelper(CallingConventions, Type)

Devuelve un asistente para las firmas de un método a partir del módulo, la convención de llamada y el tipo de valor devuelto del método.

GetMethodSigHelper(Module, CallingConventions, Type)

Devuelve un asistente de firma para un método dado el módulo del método, la convención de llamada y tipo de valor devuelto.

GetMethodSigHelper(Module, Type, Type[])

Source:
SignatureHelper.cs
Source:
SignatureHelper.cs
Source:
SignatureHelper.cs

Devuelve un asistente para las firmas de un método con una convención de llamada estándar, a partir del módulo, el tipo de valor devuelto y los tipos de argumento del método.

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

Parámetros

mod
Module

ModuleBuilder que contiene el método para el que se solicita el objeto SignatureHelper.

returnType
Type

Tipo de valor devuelto del método, o null para un tipo de valor devuelto void (procedimiento Sub en Visual Basic).

parameterTypes
Type[]

Los tipos de los argumentos del método, o null si el método no tiene ningún argumento.

Devoluciones

El objeto SignatureHelper de un método.

Excepciones

mod es null.

o bien

Un elemento de parameterTypes es null.

Comentarios

Esta sobrecarga crea una firma con una convención de llamada estándar.

Para crear una firma de método con modificadores personalizados, use la sobrecarga del GetMethodSigHelper(Module, CallingConventions, Type) método y, a continuación, use las AddArgument(Type, Type[], Type[]) sobrecargas de método o AddArguments(Type[], Type[][], Type[][]) para agregar argumentos con modificadores personalizados.

Se aplica a

GetMethodSigHelper(Module, CallingConvention, Type)

Devuelve un asistente para las firmas de un método a partir del módulo, la convención de llamada no administrada y el tipo de valor devuelto del método.

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

Parámetros

mod
Module

ModuleBuilder que contiene el método para el que se solicita el objeto SignatureHelper.

unmanagedCallConv
CallingConvention

Convención de llamada no administrada del método.

returnType
Type

Tipo de valor devuelto del método, o null para un tipo de valor devuelto void (procedimiento Sub en Visual Basic).

Devoluciones

El objeto SignatureHelper de un método.

Excepciones

mod es null.

mod no es un ModuleBuilder.

o bien

unmanagedCallConv es una convención desconocida de llamada no administrada.

Se aplica a

GetMethodSigHelper(CallingConvention, Type)

Devuelve un asistente para las firmas de un método a partir del módulo, la convención de llamada no administrada y el tipo de valor devuelto del método.

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

Parámetros

unmanagedCallingConvention
CallingConvention

Convención de llamada no administrada del método.

returnType
Type

Tipo de valor devuelto del método, o null para un tipo de valor devuelto void (procedimiento Sub en Visual Basic).

Devoluciones

El objeto SignatureHelper de un método.

Excepciones

unmanagedCallConv es una convención desconocida de llamada no administrada.

Se aplica a

GetMethodSigHelper(CallingConventions, Type)

Source:
SignatureHelper.cs
Source:
SignatureHelper.cs
Source:
SignatureHelper.cs

Devuelve un asistente para las firmas de un método a partir del módulo, la convención de llamada y el tipo de valor devuelto del método.

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

Parámetros

callingConvention
CallingConventions

Convención de llamada del método.

returnType
Type

Tipo de valor devuelto del método, o null para un tipo de valor devuelto void (procedimiento Sub en Visual Basic).

Devoluciones

El objeto SignatureHelper de un método.

Se aplica a

GetMethodSigHelper(Module, CallingConventions, Type)

Source:
SignatureHelper.cs
Source:
SignatureHelper.cs
Source:
SignatureHelper.cs

Devuelve un asistente de firma para un método dado el módulo del método, la convención de llamada y tipo de valor devuelto.

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

Parámetros

mod
Module

ModuleBuilder que contiene el método para el que se solicita el objeto SignatureHelper.

callingConvention
CallingConventions

Convención de llamada del método.

returnType
Type

Tipo de valor devuelto del método, o null para un tipo de valor devuelto void (procedimiento Sub en Visual Basic).

Devoluciones

El objeto SignatureHelper de un método.

Excepciones

mod es null.

Se aplica a