ExtractRegularExpression.Extract Method
Visual Studio 2012
Finds the text represented by the regular expression in the response and adds the value to the WebTestContext.
Assembly: Microsoft.VisualStudio.QualityTools.WebTestFramework (in Microsoft.VisualStudio.QualityTools.WebTestFramework.dll)
If the regular expression was found or Required is set to false, e.Success is true; otherwise, e.Success is false. If the regular expression was not found and it was required, e.Message is set with a string that indicates the expression was not found. This is displayed in the Test Results pane.
- 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.