共用方式為


Has.Attribute 方法

定義

多載

Attribute(Type)

傳回新的 AttributeConstraint 檢查物件上是否有特定屬性。

Attribute<T>()

傳回新的 AttributeConstraint 檢查物件上是否有特定屬性。

Attribute(Type)

傳回新的 AttributeConstraint 檢查物件上是否有特定屬性。

public static NUnit.Framework.Constraints.ResolvableConstraintExpression Attribute(Type expectedType);
static member Attribute : Type -> NUnit.Framework.Constraints.ResolvableConstraintExpression

參數

expectedType
Type

傳回

適用於

Attribute<T>()

傳回新的 AttributeConstraint 檢查物件上是否有特定屬性。

public static NUnit.Framework.Constraints.ResolvableConstraintExpression Attribute<T>();
static member Attribute : unit -> NUnit.Framework.Constraints.ResolvableConstraintExpression

類型參數

T

傳回

適用於