DocumentSet.Document MethodDocumentSet.Document MethodDocumentSet::Document Method
Returns an XPathNavigatorXPathNavigatorXPathNavigator instance representing a node in the document retrieved from the specified URI.
Syntax
Public Function Document( _ uri As AnyUri _ ) As System.Xml.XPath.XPathNavigator
public System.Xml.XPath.XPathNavigator Document( AnyUri uri )
public: System.Xml.XPath::XPathNavigator^ Document( AnyUri^ uri )
Parameters
- uri
Type: XmlPrime.AnyUriXmlPrime.AnyUriXmlPrime::AnyUri^
The URI of the document to be retrieved.
Return Value
Type: System.Xml.XPath.XPathNavigatorSystem.Xml.XPath.XPathNavigatorSystem.Xml.XPath::XPathNavigator^
A new instance representing the document, or null
a null reference (Nothing
in Visual Basic)
nullptr
if the URI
was not handled.
Exceptions
Exception | Condition |
ArgumentNullExceptionArgumentNullExceptionArgumentNullException | uri is null
a null reference (Nothing in Visual Basic)
nullptr . |
ArgumentExceptionArgumentExceptionArgumentException | uri is not an absolute URI. |
XmlExceptionXmlExceptionXmlException | The document returned from the document resolver was not valid. |
XdmExceptionXdmExceptionXdmException | The fragment could not be resolved, or an error occurred during a previous attempt to retrieve the document. |
ExceptionExceptionException | An error occurred retrieving the document. |