EnumBuilder.GetConstructors(BindingFlags) Méthode

Définition

Retourne un tableau d’objets ConstructorInfo représentant les constructeurs publics et non publics définis pour cette classe, comme spécifié.

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()

Paramètres

bindingAttr
BindingFlags

Il doit s’agir d’un indicateur de bits InvokeMethod: BindingFlags , NonPublicet ainsi de suite.

Retours

Retourne un tableau d’objets ConstructorInfo représentant les constructeurs spécifiés définis pour cette classe. Si aucun constructeur n’est défini, un tableau vide est retourné.

Attributs

Exceptions

Cette méthode n’est actuellement pas prise en charge dans les types qui ne sont pas terminés.

Remarques

Pour contourner ce problème, pour récupérer le constructeur d’un type terminé, vous pouvez récupérer le type à l’aide Type.GetType ou Assembly.GetType utiliser la réflexion sur le type récupéré.

S’applique à