ForLoopRule Class

Class to contain a conditional rule that represents an iteration statement, an initialization statement, a test expression, and an increment statement.

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.TestTools.WebTesting.ConditionalRule
    Microsoft.VisualStudio.TestTools.WebTesting.Rules.ForLoopRule

Namespace:  Microsoft.VisualStudio.TestTools.WebTesting.Rules
Assembly:  Microsoft.VisualStudio.QualityTools.WebTestFramework (in Microsoft.VisualStudio.QualityTools.WebTestFramework.dll)

Syntax

'Declaration
<ConditionalRuleTypeAttribute(ConditionalRuleType.LoopOnly)> _
Public Class ForLoopRule _
    Inherits ConditionalRule
[ConditionalRuleTypeAttribute(ConditionalRuleType.LoopOnly)]
public class ForLoopRule : ConditionalRule
[ConditionalRuleTypeAttribute(ConditionalRuleType::LoopOnly)]
public ref class ForLoopRule : public ConditionalRule
[<ConditionalRuleTypeAttribute(ConditionalRuleType.LoopOnly)>]
type ForLoopRule =  
    class
        inherit ConditionalRule
    end
public class ForLoopRule extends ConditionalRule

The ForLoopRule type exposes the following members.

Constructors

  Name Description
Public method ForLoopRule Initializes a new instance of the ForLoopRule class.

Top

Properties

  Name Description
Public property ComparisonOperator Gets or sets the comparison operator.
Public property ContextParameterName Gets or sets the context parameter name.
Public property IncrementValue Gets or sets the increment value.
Public property InitialValue Gets or sets the initial value.
Public property TerminatingValue Gets or sets the terminating value.

Top

Methods

  Name Description
Public method CheckCondition Determines whether the condition was met. (Overrides ConditionalRule.CheckCondition(Object, ConditionalEventArgs).)
Public method CleanUp Called after the loop or condition has finished executing. This includes any requests in the body. Any cleanup code that is relevant to the conditional rule must be added to this method. (Inherited from ConditionalRule.)
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method Initialize Initializes a ConditionalEventArgs. (Overrides ConditionalRule.Initialize(Object, ConditionalEventArgs).)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method StringRepresentation Converts the rule to a string to be displayed in the tree. (Overrides ConditionalRule.StringRepresentation().)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

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.

See Also

Reference

Microsoft.VisualStudio.TestTools.WebTesting.Rules Namespace