Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ValidateFormField::Validate Method (Object^, ValidationEventArgs^)

 

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)

public:
virtual void Validate(
	Object^ sender,
	ValidationEventArgs^ e
) override

Parameters

sender
Type: System::Object^

The object raising the event.

e
Type: Microsoft.VisualStudio.TestTools.WebTesting::ValidationEventArgs^

A ValidationEventArgs object.

If a form field identified by Name contains a value equal to ExpectedValue, this validation rule will pass.

Return to top
Show: