Share via


ExtractText.Required Property

Gets or sets a value that indicates whether the request fails if the search text is not found.

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

Syntax

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

Property Value

Type: Boolean
true if the extracted text is required; otherwise, false. The default is true.

Remarks

The extraction will pass if Required is false.

.NET Framework Security

See Also

Reference

ExtractText Class

Microsoft.VisualStudio.TestTools.WebTesting.Rules Namespace