TypeDelegator.GetConstructorImpl Método

Definición

Obtiene el constructor que implementó el TypeDelegator.

protected:
 override System::Reflection::ConstructorInfo ^ GetConstructorImpl(System::Reflection::BindingFlags bindingAttr, System::Reflection::Binder ^ binder, System::Reflection::CallingConventions callConvention, cli::array <Type ^> ^ types, cli::array <System::Reflection::ParameterModifier> ^ modifiers);
protected override System.Reflection.ConstructorInfo? GetConstructorImpl (System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder? binder, System.Reflection.CallingConventions callConvention, Type[] types, System.Reflection.ParameterModifier[]? modifiers);
protected override System.Reflection.ConstructorInfo GetConstructorImpl (System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder binder, System.Reflection.CallingConventions callConvention, Type[] types, System.Reflection.ParameterModifier[] modifiers);
override this.GetConstructorImpl : System.Reflection.BindingFlags * System.Reflection.Binder * System.Reflection.CallingConventions * Type[] * System.Reflection.ParameterModifier[] -> System.Reflection.ConstructorInfo
Protected Overrides Function GetConstructorImpl (bindingAttr As BindingFlags, binder As Binder, callConvention As CallingConventions, types As Type(), modifiers As ParameterModifier()) As ConstructorInfo

Parámetros

bindingAttr
BindingFlags

Máscara de bits que afecta al modo de realizar la búsqueda. El valor es una combinación de cero o más marcas de bits de BindingFlags.

binder
Binder

Objeto que permite el enlace, la conversión de tipos de argumentos, la invocación de miembros y la recuperación de objetos MemberInfo mediante la reflexión. Si binder es null, se usa el enlazador predeterminado.

callConvention
CallingConventions

Convenciones de llamadas.

types
Type[]

Matriz de tipo Type que contiene una lista del número, el orden y los tipos de parámetros. Los tipos no pueden ser null; utilice un método GetMethod apropiado o una matriz vacía para buscar un método sin parámetros.

modifiers
ParameterModifier[]

Matriz de tipo ParameterModifier que tiene la misma longitud que la matriz types cuyos elementos representan a los atributos asociados a los parámetros del método que se va a obtener.

Devoluciones

ConstructorInfo

Objeto ConstructorInfo para el método que coincide con los criterios especificados, o null si no se encuentra ninguna coincidencia.

Comentarios

El callConvention parámetro indica la convención de llamada para el punto de entrada. Si no se especifica ninguna convención de llamada, se usa un valor predeterminado CallingConventions de Standard .

Se aplica a

Consulte también