ResolvedDocument Constructor (IXPathNavigable, string)ResolvedDocument Constructor (IXPathNavigable, String)ResolvedDocument Constructor (IXPathNavigable^, String^)

Initializes a new instance of the ResolvedDocumentResolvedDocumentResolvedDocument class.

Syntax

Public Sub New ( _
    document As System.Xml.XPath.IXPathNavigable, _
    mediaType As String _
)
public ResolvedDocument(
    System.Xml.XPath.IXPathNavigable document,
    string mediaType
)
public:
ResolvedDocument(
    System.Xml.XPath::IXPathNavigable^ document, 
    String^ mediaType
)
 

Parameters

document

Type: System.Xml.XPath.IXPathNavigableSystem.Xml.XPath.IXPathNavigableSystem.Xml.XPath::IXPathNavigable^

The document.

mediaType

Type: System.StringSystem.StringSystem::String^

The media type of the document, or null a null reference (Nothing in Visual Basic) nullptr if this is not known.

Exceptions

ExceptionCondition
ArgumentNullExceptionArgumentNullExceptionArgumentNullExceptiondocument is null a null reference (Nothing in Visual Basic) nullptr.
ArgumentExceptionArgumentExceptionArgumentExceptiondocument is not a document node or mediaType is not a valid media type.