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é

Boolean

true si cette méthode est un constructeur représenté par un objet ConstructorInfo (consultez la section Notes relative aux objets ConstructorBuilder) ; sinon, false.

Implémente

Attributs

Remarques

Notes

La IsConstructor propriété retourne false pour un ConstructorBuilder objet dans un type dynamique, à moins que l' MethodAttributes.RTSpecialName indicateur ne soit inclus dans le attributes paramètre lorsque le constructeur a été défini. L’omission RTSpecialName de l’indicateur n’affecte pas l’exactitude du constructeur émis.

S’applique à

Voir aussi