ResolvedDocument Constructor (IXPathNavigable, string)ResolvedDocument Constructor (IXPathNavigable, String)ResolvedDocument Constructor (IXPathNavigable^, String^)
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
Exception | Condition |
ArgumentNullExceptionArgumentNullExceptionArgumentNullException | document is null
a null reference (Nothing in Visual Basic)
nullptr . |
ArgumentExceptionArgumentExceptionArgumentException | document is not a document node or mediaType is not a valid media type. |