ValidationRuleReference Class

The ValidationRuleReference class encapsulates the metadata about an ValidationRule and the parameter values to use when an instance of the ValidationRule is created when the Web performance test that uses the ValidationRule is run.

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.TestTools.WebTesting.WebTestRuleBase
    Microsoft.VisualStudio.TestTools.WebTesting.ValidationRuleReference

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

Syntax

'Declaration
<SerializableAttribute> _
Public Class ValidationRuleReference _
    Inherits WebTestRuleBase
[SerializableAttribute]
public class ValidationRuleReference : WebTestRuleBase
[SerializableAttribute]
public ref class ValidationRuleReference : public WebTestRuleBase
[<SerializableAttribute>]
type ValidationRuleReference =  
    class
        inherit WebTestRuleBase
    end
public class ValidationRuleReference extends WebTestRuleBase

The ValidationRuleReference type exposes the following members.

Constructors

  Name Description
Public method ValidationRuleReference() Initializes a new instance of the ValidationRuleReference class.
Public method ValidationRuleReference(Type) Initializes a new instance of the ValidationRuleReference class using the Type of the ValidationRule implementation as a parameter.

Top

Properties

  Name Description
Public property Description Gets or sets the description of the rule or plug-in. (Inherited from WebTestRuleBase.)
Public property DisplayName Gets or sets the name of the rule or plug-in to be displayed in the Web performance test editor. (Inherited from WebTestRuleBase.)
Public property ExecutionOrder (Inherited from WebTestRuleBase.)
Public property Properties Gets or sets a collection of PluginOrRuleProperty objects with one member for each property defined by the rule or plug-in implementation. (Inherited from WebTestRuleBase.)
Public property Type Gets or sets the Type object representing the type of the rule or plug-in. (Inherited from WebTestRuleBase.)
Public property ValidationLevel Gets or sets the validation level as defined by the ValidationLevel enum.

Top

Methods

  Name Description
Public method Clone Returns a new instance of the ValidationRuleReference object. (Overrides WebTestRuleBase.Clone().)
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.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
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 Namespace