Initializes a new instance of the HtmlDocument class. This constructor takes a string and uses it as the document.
Namespace:  Microsoft.VisualStudio.TestTools.WebTesting
Assembly:  Microsoft.VisualStudio.QualityTools.WebTestFramework (in Microsoft.VisualStudio.QualityTools.WebTestFramework.dll)
Syntax
'Declaration
Public Sub New ( _
    documentLocation As Uri, _
    documentContent As String _
)
public HtmlDocument(
    Uri documentLocation,
    string documentContent
)
public:
HtmlDocument(
    Uri^ documentLocation, 
    String^ documentContent
)
new : 
        documentLocation:Uri * 
        documentContent:string -> HtmlDocument
public function HtmlDocument(
    documentLocation : Uri, 
    documentContent : String
)
Parameters
- documentLocation 
 Type: Uri- A URI representing the document location. 
- documentContent 
 Type: String- The contents of the document. 
.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.