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 | |
---|---|---|
ValidationRuleReference() | Initializes a new instance of the ValidationRuleReference class. | |
ValidationRuleReference(Type) | Initializes a new instance of the ValidationRuleReference class using the Type of the ValidationRule implementation as a parameter. |
Top
Properties
Name | Description | |
---|---|---|
Description | Gets or sets the description of the rule or plug-in. (Inherited from WebTestRuleBase.) | |
DisplayName | Gets or sets the name of the rule or plug-in to be displayed in the Web performance test editor. (Inherited from WebTestRuleBase.) | |
ExecutionOrder | (Inherited from WebTestRuleBase.) | |
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.) | |
Type | Gets or sets the Type object representing the type of the rule or plug-in. (Inherited from WebTestRuleBase.) | |
ValidationLevel | Gets or sets the validation level as defined by the ValidationLevel enum. |
Top
Methods
Name | Description | |
---|---|---|
Clone | Returns a new instance of the ValidationRuleReference object. (Overrides WebTestRuleBase.Clone().) | |
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
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.