共用方式為


TestElement.Enabled 屬性

取得或設定值,這個值表示此測試項目是否已啟用。

命名空間:  Microsoft.VisualStudio.TestTools.Common
組件:  Microsoft.VisualStudio.QualityTools.Common (在 Microsoft.VisualStudio.QualityTools.Common.dll 中)

語法

'宣告
<GroupingPropertyAttribute> _
<UserVisiblePropertyAttribute("{376F2C59-87E5-416d-8109-7B40DEAA2EF5}")> _
<PropertyWindowAttribute> _
Public Overridable Property Enabled As Boolean
[GroupingPropertyAttribute]
[UserVisiblePropertyAttribute("{376F2C59-87E5-416d-8109-7B40DEAA2EF5}")]
[PropertyWindowAttribute]
public virtual bool Enabled { get; set; }
[GroupingPropertyAttribute]
[UserVisiblePropertyAttribute(L"{376F2C59-87E5-416d-8109-7B40DEAA2EF5}")]
[PropertyWindowAttribute]
public:
virtual property bool Enabled {
    bool get ();
    void set (bool value);
}
[<GroupingPropertyAttribute>]
[<UserVisiblePropertyAttribute("{376F2C59-87E5-416d-8109-7B40DEAA2EF5}")>]
[<PropertyWindowAttribute>]
abstract Enabled : bool with get, set
[<GroupingPropertyAttribute>]
[<UserVisiblePropertyAttribute("{376F2C59-87E5-416d-8109-7B40DEAA2EF5}")>]
[<PropertyWindowAttribute>]
override Enabled : bool with get, set
function get Enabled () : boolean
function set Enabled (value : boolean)

屬性值

型別:System.Boolean
如果此測試項目已啟用,則為 true,否則為 false。

實作

ITestElement.Enabled

.NET Framework 安全性

請參閱

參考

TestElement 類別

Microsoft.VisualStudio.TestTools.Common 命名空間