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.
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)
Syntax
'Declaration
Public Property Index As Integer
'Usage
Dim instance As ExtractRegularExpression
Dim value As Integer
value = instance.Index
instance.Index = value
public int Index { get; set; }
public:
property int Index {
int get ();
void set (int value);
}
public function get Index () : int
public function set Index (value : int)
Property Value
Type: System.Int32
An index value of an occurrence of a string that is identified by RegularExpression.
Remarks
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.
.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.
See Also
Reference
ExtractRegularExpression Class