ConstraintExpression.Attribute 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| Attribute(Type) |
傳回新的 AttributeConstraint 檢查物件上是否有特定屬性。 |
| Attribute<T>() |
傳回新的 AttributeConstraint 檢查物件上是否有特定屬性。 |
Attribute(Type)
傳回新的 AttributeConstraint 檢查物件上是否有特定屬性。
public NUnit.Framework.Constraints.ResolvableConstraintExpression Attribute(Type expectedType);
member this.Attribute : Type -> NUnit.Framework.Constraints.ResolvableConstraintExpression
參數
- expectedType
- Type
傳回
適用於
Attribute<T>()
傳回新的 AttributeConstraint 檢查物件上是否有特定屬性。
public NUnit.Framework.Constraints.ResolvableConstraintExpression Attribute<T>();
member this.Attribute : unit -> NUnit.Framework.Constraints.ResolvableConstraintExpression
類型參數
- T