SharedDocumentSet.Document MethodSharedDocumentSet.Document MethodSharedDocumentSet::Document Method

Returns an IXPathNavigableIXPathNavigableIXPathNavigable instance representing the document retrieved from the specified URI.

Syntax

Public Overrides Function Document( _
    uri As AnyUri, _
    whitespaceSettings As XsltWhitespaceSettings _
) As System.Xml.XPath.IXPathNavigable
public override System.Xml.XPath.IXPathNavigable Document(
    AnyUri uri,
    XsltWhitespaceSettings whitespaceSettings
)
public:
virtual System.Xml.XPath::IXPathNavigable^ Document(
    AnyUri^ uri, 
    XsltWhitespaceSettings^ whitespaceSettings
) override
 

Parameters

uri

Type: XmlPrime.AnyUriXmlPrime.AnyUriXmlPrime::AnyUri^

The URI of the document to be retrieved.

whitespaceSettings

Type: XmlPrime.XsltWhitespaceSettingsXmlPrime.XsltWhitespaceSettingsXmlPrime::XsltWhitespaceSettings^

The whitespace settings.

Return Value

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

An instance representing the document, or null a null reference (Nothing in Visual Basic) nullptr if the URI was not handled.

Exceptions

ExceptionCondition
ArgumentNullExceptionArgumentNullExceptionArgumentNullExceptionuri is null a null reference (Nothing in Visual Basic) nullptr.
ArgumentExceptionArgumentExceptionArgumentExceptionuri is not an absolute URI.
XdmExceptionXdmExceptionXdmExceptionAn error occurred during a previous attempt to retrieve the document.
ExceptionExceptionException An error occurred retrieving the document.