Partager via


ValidationEventArgs Class

Provides data for the ValidateResponse event.

Inheritance Hierarchy

Object
  EventArgs
    Microsoft.VisualStudio.TestTools.WebTesting.ValidationEventArgs

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

Syntax

'Declaration
Public Class ValidationEventArgs _
    Inherits EventArgs
public class ValidationEventArgs : EventArgs
public ref class ValidationEventArgs : public EventArgs
type ValidationEventArgs =  
    class 
        inherit EventArgs 
    end
public class ValidationEventArgs extends EventArgs

The ValidationEventArgs type exposes the following members.

Properties

  Name Description
Public property IsValid Gets or sets a value indicating whether the request passes validation.
Public property Message Gets or sets a message that describes validation attempts.
Public property Request Gets the WebTestRequest that generated the response that is validated.
Public property RequestDuration Gets the total time duration specified for requesting validation.
Public property Response Gets the WebTestResponse being validated.
Public property ValidationLevel Gets the current validation level.
Public property WebTest Gets the Web performance test that contains the request that triggered the validation event.

Top

Methods

  Name Description
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 the default hash function. (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

Remarks

These event arguments are used for validating requests.

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

Other Resources

Coding a custom validation rule for a web performance test

[retired] How to: Add a Validation Rule to a Web Performance Test