次の方法で共有


TestElement.Enabled Property

Definition

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

public:
 virtual property bool Enabled { bool get(); void set(bool value); };
[Microsoft.VisualStudio.TestTools.Common.GroupingProperty]
[Microsoft.VisualStudio.TestTools.Common.LocalizedDescription(typeof(Microsoft.VisualStudio.TestTools.Resources.UIResources), "TestElement_Enabled_PropertyDescription")]
[Microsoft.VisualStudio.TestTools.Common.PropertyWindow]
[Microsoft.VisualStudio.TestTools.Common.TestCaseManagementDisplayName(typeof(Microsoft.VisualStudio.TestTools.Resources.UIResources), "TestElement_Enabled")]
[Microsoft.VisualStudio.TestTools.Common.UserVisibleProperty("{376F2C59-87E5-416d-8109-7B40DEAA2EF5}")]
[System.ComponentModel.DefaultValue(true)]
public virtual bool Enabled { get; set; }
[<Microsoft.VisualStudio.TestTools.Common.GroupingProperty>]
[<Microsoft.VisualStudio.TestTools.Common.LocalizedDescription(typeof(Microsoft.VisualStudio.TestTools.Resources.UIResources), "TestElement_Enabled_PropertyDescription")>]
[<Microsoft.VisualStudio.TestTools.Common.PropertyWindow>]
[<Microsoft.VisualStudio.TestTools.Common.TestCaseManagementDisplayName(typeof(Microsoft.VisualStudio.TestTools.Resources.UIResources), "TestElement_Enabled")>]
[<Microsoft.VisualStudio.TestTools.Common.UserVisibleProperty("{376F2C59-87E5-416d-8109-7B40DEAA2EF5}")>]
[<System.ComponentModel.DefaultValue(true)>]
member this.Enabled : bool with get, set
Public Overridable Property Enabled As Boolean

Property Value

true if this test element is enabled; otherwise, false.

Implements

Attributes

Applies to