Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Validates the existence of a form field that contains a specific value.
Namespace:  Microsoft.VisualStudio.TestTools.WebTesting.Rules
Assembly:  Microsoft.VisualStudio.QualityTools.WebTestFramework (in Microsoft.VisualStudio.QualityTools.WebTestFramework.dll)
Syntax
'Declaration
Public Overrides Sub Validate ( _
    sender As Object, _
    e As ValidationEventArgs _
)
public override void Validate(
    Object sender,
    ValidationEventArgs e
)
public:
virtual void Validate(
    Object^ sender, 
    ValidationEventArgs^ e
) override
abstract Validate : 
        sender:Object * 
        e:ValidationEventArgs -> unit 
override Validate : 
        sender:Object * 
        e:ValidationEventArgs -> unit 
public override function Validate(
    sender : Object, 
    e : ValidationEventArgs
)
Parameters
- sender
 Type: System.Object
 The object raising the event.
- e
 Type: Microsoft.VisualStudio.TestTools.WebTesting.ValidationEventArgs
 A ValidationEventArgs object.
Remarks
If a form field identified by Name contains a value equal to ExpectedValue, this validation rule will pass.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.