Share via


TestElement.Enabled Property

Gets or sets a value that indicates whether this test element is enabled.

Namespace:  Microsoft.VisualStudio.TestTools.Common
Assembly:  Microsoft.VisualStudio.QualityTools.Common (in Microsoft.VisualStudio.QualityTools.Common.dll)

Syntax

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

Property Value

Type: System.Boolean
true if this test element is enabled; otherwise, false.

Implements

ITestElement.Enabled

.NET Framework Security

See Also

Reference

TestElement Class

Microsoft.VisualStudio.TestTools.Common Namespace