ICollectionResolver.Resolve MethodICollectionResolver.Resolve MethodICollectionResolver::Resolve Method

Resolves a URI to a collection, or resolves the default collection.

Syntax

Function Resolve( _
    uri As AnyUri, _
    documentSet As DocumentSet, _
    nameTable As System.Xml.XmlNameTable, _
    whitespaceSettings As XsltWhitespaceSettings _
) As System.Xml.XPath.IXPathNavigable[]
System.Xml.XPath.IXPathNavigable[] Resolve(
    AnyUri uri,
    DocumentSet documentSet,
    System.Xml.XmlNameTable nameTable,
    XsltWhitespaceSettings whitespaceSettings
)
array<System.Xml.XPath::IXPathNavigable^> Resolve(
    AnyUri^ uri, 
    DocumentSet^ documentSet, 
    System.Xml::XmlNameTable^ nameTable, 
    XsltWhitespaceSettings^ whitespaceSettings
)
 

Parameters

uri

Type: XmlPrime.AnyUriXmlPrime.AnyUriXmlPrime::AnyUri^

The absolute URI of the document to resolve, or null a null reference (Nothing in Visual Basic) nullptr to resolve the default collection.

documentSet

Type: XmlPrime.DocumentSetXmlPrime.DocumentSetXmlPrime::DocumentSet^

The document set that should be used to retrieve documents.

nameTable

Type: System.Xml.XmlNameTableSystem.Xml.XmlNameTableSystem.Xml::XmlNameTable^

The name table to use to load nodes.

whitespaceSettings

Type: XmlPrime.XsltWhitespaceSettingsXmlPrime.XsltWhitespaceSettingsXmlPrime::XsltWhitespaceSettings^

The whitespace settings.

Return Value

Type: System.Xml.XPath.IXPathNavigable[]System.Xml.XPath.IXPathNavigable()array<System.Xml.XPath::IXPathNavigable^>^

An array of IXPathNavigableIXPathNavigableIXPathNavigable instances representing the collection, or null a null reference (Nothing in Visual Basic) nullptr if the URI can not be mapped to a collection.

Exceptions

ExceptionCondition
ExceptionExceptionExceptionAn error occurred retrieving the collection.

Remarks

Any documents with document URIs must have been retrieved from the document set.

A return value of null a null reference (Nothing in Visual Basic) nullptr indicates that uri is not supported by this resolver (for example an unsupported URI scheme). If the URI does have meaning to this resolver but there was an error retrieving the document then an exception should be thrown.