DocumentSet.TryGetDocument MethodDocumentSet.TryGetDocument MethodDocumentSet::TryGetDocument Method
- XmlPrime 1.4
- Other Versions ▼
Syntax
Public Function TryGetDocument( _ uri As AnyUri, _ <Out>document As ByRef System.Xml.XPath.IXPathNavigable _ ) As Boolean
public bool TryGetDocument( AnyUri uri, out System.Xml.XPath.IXPathNavigable document )
public: bool TryGetDocument( AnyUri^ uri, [Out] System.Xml.XPath::IXPathNavigable^% document )
Parameters
- uri
Type: XmlPrime.AnyUriXmlPrime.AnyUriXmlPrime::AnyUri^
The URI of the document to retrieve.
- document
Type: out System.Xml.XPath.IXPathNavigableByRef System.Xml.XPath.IXPathNavigableSystem.Xml.XPath::IXPathNavigable^%
When this method returns, contains the document at the specified URI, if it is cached in the DocumentSetDocumentSetDocumentSet; otherwise
null
a null reference (Nothing
in Visual Basic)nullptr
. This is also set tonull
a null reference (Nothing
in Visual Basic)nullptr
if the URI is marked as unavailable.
Return Value
Type: System.BooleanSystem.BooleanSystem::Boolean
true
True
true
if the DocumentSetDocumentSetDocumentSet contains the specified document, or the URI is
marked as unavailable; otherwise false
False
false
.
Exceptions
Exception | Condition |
ArgumentNullExceptionArgumentNullExceptionArgumentNullException | uri is null
a null reference (Nothing in Visual Basic)
nullptr . |
ArgumentExceptionArgumentExceptionArgumentException | uri is not an absolute URI. |