ExtractRegularExpression.Required Property

Gets or sets a value that indicates whether the extraction fails if the text represented by RegularExpression does not exist in the HtmlDocument.

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

Syntax

'Declaration
Public Property Required As Boolean
'Usage
Dim instance As ExtractRegularExpression 
Dim value As Boolean 

value = instance.Required

instance.Required = value
public bool Required { get; set; }
public:
property bool Required {
    bool get ();
    void set (bool value);
}
public function get Required () : boolean 
public function set Required (value : boolean)

Property Value

Type: System.Boolean
true if the request fails if the text represented by RegularExpression does not exist; otherwise, false. The default value is true.

.NET Framework Security

See Also

Reference

ExtractRegularExpression Class

ExtractRegularExpression Members

Microsoft.VisualStudio.TestTools.WebTesting.Rules Namespace