Share via


HtmlDocument Constructor

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

See Also

Reference

HtmlDocument Class

Microsoft.VisualStudio.TestTools.WebTesting Namespace