Partager via


Has.Attribute Méthode

Définition

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

Retours

S’applique à