This class represents the conditional statement constructs. It contains a collection of Web performance test items that are executed when the conditional rule is met.
Inheritance Hierarchy
Object
  Microsoft.VisualStudio.TestTools.WebTesting.WebTestItem
    Microsoft.VisualStudio.TestTools.WebTesting.WebTestConditionalConstruct
      Microsoft.VisualStudio.TestTools.WebTesting.WebTestCondition
Namespace:  Microsoft.VisualStudio.TestTools.WebTesting
Assembly:  Microsoft.VisualStudio.QualityTools.WebTestFramework (in Microsoft.VisualStudio.QualityTools.WebTestFramework.dll)
Syntax
'Declaration
<SerializableAttribute> _
Public Class WebTestCondition _
    Inherits WebTestConditionalConstruct
[SerializableAttribute]
public class WebTestCondition : WebTestConditionalConstruct
[SerializableAttribute]
public ref class WebTestCondition : public WebTestConditionalConstruct
[<SerializableAttribute>]
type WebTestCondition =  
    class 
        inherit WebTestConditionalConstruct 
    end
public class WebTestCondition extends WebTestConditionalConstruct
The WebTestCondition type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| .gif) | WebTestCondition(ConditionalRule) | Initializes a new instance of the WebTestCondition class by using the specified ConditionalRule. | 
| .gif) | WebTestCondition(ConditionConditionalRuleReference) | Initializes a new instance of the WebTestCondition class by using the specified ConditionalRuleReference. | 
| .gif) | WebTestCondition(WebTestCondition) | Initializes a new instance of the WebTestCondition class by copying the specified WebTestCondition. | 
Top
Properties
| Name | Description | |
|---|---|---|
| .gif) | ConditionalRuleReference | Gets or sets the reference to a conditional rule. (Inherited from WebTestConditionalConstruct.) | 
| .gif) | ConditionConditionalRuleReference | Gets the conditional rule reference for this WebTestCondition. | 
| .gif) | ElseItems | |
| .gif) | ItemId | Zero-based sequence number of the item in the Web performance test. (Inherited from WebTestItem.) | 
| .gif) | Items | Gets the collection of WebTestItem objects. (Inherited from WebTestConditionalConstruct.) | 
| .gif) | UniqueStringId | Gets or sets the unique string ID. (Inherited from WebTestConditionalConstruct.) | 
Top
Methods
| Name | Description | |
|---|---|---|
| .gif) | Clone | Creates a new WebTestCondition object that is a copy of the current instance. (Overrides WebTestItem.Clone().) | 
| .gif) | Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | 
| .gif) | ExecuteCheckConditionalRule | Executes the conditional rule. (Inherited from WebTestConditionalConstruct.) | 
| .gif) | ExecuteCleanUpConditionalRule | Performs cleanup after the conditional rule is checked. (Inherited from WebTestConditionalConstruct.) | 
| .gif) | ExecuteInitializeConditionalRule | Initializes the conditional rule. (Inherited from WebTestConditionalConstruct.) | 
| .gif) | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | 
| .gif) | GetConditionalRuleText | Returns the text description of the conditional rule. (Inherited from WebTestConditionalConstruct.) | 
| .gif) | GetHashCode | Serves as the default hash function. (Inherited from Object.) | 
| .gif) | GetType | Gets the Type of the current instance. (Inherited from Object.) | 
| .gif) | Initialize(ConditionalRuleReference) | Initializes a new referenced conditional rule. (Inherited from WebTestConditionalConstruct.) | 
| .gif) | Initialize(WebTestConditionalConstruct, ConditionalRuleReference) | Initializes a new referenced conditional rule by copying the specified ConditionalRuleReference. (Inherited from WebTestConditionalConstruct.) | 
| .gif) | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | 
| .gif) | RuntimeClone | Creates a new WebTestCondition object that is a copy of the current instance at run time. (Overrides WebTestItem.RuntimeClone().) | 
| .gif) | ToString() | Returns a String that represents the current WebTestCondition. (Overrides Object.ToString.) | 
| .gif) | ToString(String) | Returns a String that represents the current WebTestCondition based on the specified conditional rule text. (Overrides WebTestConditionalConstruct.ToString(String).) | 
Top
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.