ITargetAwareCodeDomProvider.SupportsProperty(Type, String, Boolean) Méthode

Définition

Indique si le type spécifié sur le framework cible du projet possède une propriété nommée spécifiée.

Cette API prend en charge l'infrastructure du produit et n'est pas destinée à être utilisée directement à partir de votre code.

public:
 bool SupportsProperty(Type ^ type, System::String ^ propertyName, bool isWritable);
public bool SupportsProperty (Type type, string propertyName, bool isWritable);
abstract member SupportsProperty : Type * string * bool -> bool
Public Function SupportsProperty (type As Type, propertyName As String, isWritable As Boolean) As Boolean

Paramètres

type
Type

Type dont les propriétés doivent être recherchées.

propertyName
String

Nom de la propriété à rechercher dans type.

isWritable
Boolean

Indicateur spécifiant si la propriété doit inclure un accesseur get.

Retours

true si type sur le Framework cible du projet a une propriété nommée propertyname ; sinon, false.

S’applique à