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。
實作
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。