EnumBuilder.GetConstructors(BindingFlags) Método

Definición

Devuelve una matriz de ConstructorInfo objetos que representan los constructores públicos y no públicos definidos para esta clase, tal como se especifica.

public:
 override cli::array <System::Reflection::ConstructorInfo ^> ^ GetConstructors(System::Reflection::BindingFlags bindingAttr);
public override System.Reflection.ConstructorInfo[] GetConstructors (System.Reflection.BindingFlags bindingAttr);
[System.Runtime.InteropServices.ComVisible(true)]
public override System.Reflection.ConstructorInfo[] GetConstructors (System.Reflection.BindingFlags bindingAttr);
override this.GetConstructors : System.Reflection.BindingFlags -> System.Reflection.ConstructorInfo[]
[<System.Runtime.InteropServices.ComVisible(true)>]
override this.GetConstructors : System.Reflection.BindingFlags -> System.Reflection.ConstructorInfo[]
Public Overrides Function GetConstructors (bindingAttr As BindingFlags) As ConstructorInfo()

Parámetros

bindingAttr
BindingFlags

Debe ser un indicador de bits de BindingFlags: InvokeMethod, NonPublic, etc.

Devoluciones

ConstructorInfo[]

Devuelve una matriz de ConstructorInfo objetos que representan los constructores especificados definidos para esta clase. Si no se definen constructores, se devuelve una matriz vacía.

Atributos

Excepciones

Este método no se admite actualmente en tipos que no están completos.

Comentarios

Como solución alternativa, para recuperar el constructor de un tipo terminado, puede recuperar el tipo mediante Type.GetType o Assembly.GetType y usar la reflexión en el tipo recuperado.

Se aplica a