Share via


ValidationEventArgs.IsValid Property

Gets or sets a value indicating whether the request passes validation.

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

Syntax

'Declaration
Public Property IsValid As Boolean
public bool IsValid { get; set; }
public:
property bool IsValid {
    bool get ();
    void set (bool value);
}
member IsValid : bool with get, set
function get IsValid () : boolean
function set IsValid (value : boolean)

Property Value

Type: System.Boolean
true if the request passes validation; otherwise, false.

Remarks

If the event handler throws an unhandled exception, IsValid will automatically be set to false.

.NET Framework Security

See Also

Reference

ValidationEventArgs Class

Microsoft.VisualStudio.TestTools.WebTesting Namespace