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.

ExtractRegularExpression.Index Property

 

Gets or sets a value that represents an index value of an occurrence of a string that is located in the HtmlDocument.

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

[DefaultValueAttribute(0)]
public int Index { get; set; }

Property Value

Type: System.Int32

An index value of an occurrence of a string that is identified by RegularExpression.

This is a zero-based index used to identify which occurrence of a string that is identified by RegularExpression, will be extracted and added to the WebTestContext. If the Index value is greater than the number of occurrences in the HtmlDocument, this extraction rule will fail as long as Required is true.

Return to top
Show: