DocumentSet.Document MethodDocumentSet.Document MethodDocumentSet::Document Method

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

Syntax

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

Parameters

uri

Type: XmlPrime.AnyUriXmlPrime.AnyUriXmlPrime::AnyUri^

The URI of the document to be retrieved.

whitespaceSettings

Type: XmlPrime.XsltWhitespaceSettingsXmlPrime.XsltWhitespaceSettingsXmlPrime::XsltWhitespaceSettings^

Settings for whitespace stripping, or null a null reference (Nothing in Visual Basic) nullptr to use the default settings.

Return Value

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

A new 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.
XmlExceptionXmlExceptionXmlExceptionThe document returned from the document resolver was not valid.
XdmExceptionXdmExceptionXdmExceptionAn error occurred during a previous attempt to retrieve the document.
ExceptionExceptionException An error occurred retrieving the document.