SignatureHelper.GetMethodSigHelper Método

Definición

Devuelve un asistente de firma para un método .

Sobrecargas

Nombre Description
GetMethodSigHelper(Module, Type, Type[])

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

GetMethodSigHelper(Module, CallingConvention, Type)

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

GetMethodSigHelper(CallingConvention, Type)

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

GetMethodSigHelper(CallingConventions, Type)

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

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 el tipo de valor devuelto.

GetMethodSigHelper(Module, Type, Type[])

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

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

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 SignatureHelper que se solicita .

returnType
Type

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

parameterTypes
Type[]

Los tipos de los argumentos del método o null si el método no tiene argumentos.

Devoluciones

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 del método o AddArguments(Type[], Type[][], Type[][]) para agregar argumentos con modificadores personalizados.

Se aplica a

GetMethodSigHelper(Module, CallingConvention, Type)

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

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 SignatureHelper que se solicita .

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 (Sub procedimiento en Visual Basic).

Devoluciones

Objeto SignatureHelper de un método.

Excepciones

mod es null.

modno es .ModuleBuilder

O bien

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

Se aplica a

GetMethodSigHelper(CallingConvention, Type)

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

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 (Sub procedimiento en Visual Basic).

Devoluciones

Objeto SignatureHelper de un método.

Excepciones

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

Se aplica a

GetMethodSigHelper(CallingConventions, Type)

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

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

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 (Sub procedimiento en Visual Basic).

Devoluciones

Objeto SignatureHelper de un método.

Se aplica a

GetMethodSigHelper(Module, CallingConventions, Type)

Source:
SignatureHelper.cs
Source:
SignatureHelper.cs
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 el 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 SignatureHelper que se solicita .

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 (Sub procedimiento en Visual Basic).

Devoluciones

Objeto SignatureHelper de un método.

Excepciones

mod es null.

Se aplica a