DocumentSet.TryGetDocument MethodDocumentSet.TryGetDocument MethodDocumentSet::TryGetDocument Method
- XmlPrime 1.3
- 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
nulla null reference (Nothingin Visual Basic)nullptr. This is also set tonulla null reference (Nothingin Visual Basic)nullptrif the URI is marked as unavailable.
Return Value
Type: System.BooleanSystem.BooleanSystem::Boolean
trueTruetrue if the DocumentSetDocumentSetDocumentSet contains the specified document, or the URI is
marked as unavailable; otherwise falseFalsefalse.
Exceptions
| Exception | Condition |
| ArgumentNullExceptionArgumentNullExceptionArgumentNullException | uri is null
a null reference (Nothing in Visual Basic)
nullptr. |
| ArgumentExceptionArgumentExceptionArgumentException | uri is not an absolute URI. |
