Has.Attribute Méthode
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.
Surcharges
| Attribute(Type) |
Retourne une nouvelle propriété AttributeConstraint qui vérifie la présence d’un attribut particulier sur un objet. |
| Attribute<T>() |
Retourne une nouvelle propriété AttributeConstraint qui vérifie la présence d’un attribut particulier sur un objet. |
Attribute(Type)
Retourne une nouvelle propriété AttributeConstraint qui vérifie la présence d’un attribut particulier sur un objet.
public static NUnit.Framework.Constraints.ResolvableConstraintExpression Attribute(Type expectedType);
static member Attribute : Type -> NUnit.Framework.Constraints.ResolvableConstraintExpression
Paramètres
- expectedType
- Type
Retours
S’applique à
Attribute<T>()
Retourne une nouvelle propriété AttributeConstraint qui vérifie la présence d’un attribut particulier sur un objet.
public static NUnit.Framework.Constraints.ResolvableConstraintExpression Attribute<T>();
static member Attribute : unit -> NUnit.Framework.Constraints.ResolvableConstraintExpression
Paramètres de type
- T