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.

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)

[SerializableAttribute]
public class ValidationRuleReference : WebTestRuleBase

The ValidationRuleReference type exposes the following members.

  NameDescription
Public methodValidationRuleReference()Initializes a new instance of the ValidationRuleReference class.
Public methodValidationRuleReference(Type)Initializes a new instance of the ValidationRuleReference class using the Type of the ValidationRule implementation as a parameter.
Top

  NameDescription
Public propertyDescriptionGets or sets the description of the rule or plug-in. (Inherited from WebTestRuleBase.)
Public propertyDisplayNameGets or sets the name of the rule or plug-in to be displayed in the Web performance test editor. (Inherited from WebTestRuleBase.)
Public propertyExecutionOrder (Inherited from WebTestRuleBase.)
Public propertyPropertiesGets 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 propertyTypeGets or sets the Type object representing the type of the rule or plug-in. (Inherited from WebTestRuleBase.)
Public propertyValidationLevelGets or sets the validation level as defined by the ValidationLevel enum.
Top

  NameDescription
Public methodCloneReturns a new instance of the ValidationRuleReference object. (Overrides WebTestRuleBase.Clone().)
Public methodEqualsDetermines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Community Additions

ADD
Show: