ValidationEventArgs Class
Provides data for the ValidateResponse event.
Inheritance Hierarchy
System.Object
System.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 | |
---|---|---|
IsValid | Gets or sets a value indicating whether the request passes validation. | |
Message | Gets or sets a message that describes validation attempts. | |
Request | Gets the WebTestRequest that generated the response that is validated. | |
RequestDuration | Gets the total time duration specified for requesting validation. | |
Response | Gets the WebTestResponse being validated. | |
ValidationLevel | Gets the current validation level. | |
WebTest | Gets the Web performance test that contains the request that triggered the validation event. |
Top
Methods
Name | Description | |
---|---|---|
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
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
How to: Create a Custom Validation Rule for a Web Performance Test