Partager via


MethodBase.IsConstructor Propriété

Définition

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.

S’applique à

Voir aussi