MethodBase.IsConstructor Propriété
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Obtient une valeur indiquant si la méthode est un constructeur.
public:
property bool IsConstructor { bool get(); };
public bool IsConstructor { get; }
[System.Runtime.InteropServices.ComVisible(true)]
public bool IsConstructor { get; }
member this.IsConstructor : bool
[<System.Runtime.InteropServices.ComVisible(true)>]
member this.IsConstructor : bool
Public ReadOnly Property IsConstructor As Boolean
Valeur de propriété
true si cette méthode est un constructeur représenté par un ConstructorInfo objet (voir remarque dans Notes sur ConstructorBuilder les objets) ; sinon, false.
Implémente
- Attributs
Remarques
Note
La IsConstructor propriété retourne false un objet dans un ConstructorBuilder type dynamique, sauf si l’indicateur MethodAttributes.RTSpecialName a été inclus dans le attributes paramètre lorsque le constructeur a été défini. L’omission de l’indicateur RTSpecialName n’affecte pas la justesse du constructeur émis.