DocumentSet.TryGetDocument MethodDocumentSet.TryGetDocument MethodDocumentSet::TryGetDocument Method
Syntax
Public Function TryGetDocument( _ uri As AnyUri, _ <Out>document As ByRef ResolvedDocument _ ) As Boolean
public bool TryGetDocument( AnyUri uri, out ResolvedDocument document )
public: bool TryGetDocument( AnyUri^ uri, [Out] ResolvedDocument^% document )
Parameters
- uri
Type: XmlPrime.AnyUriXmlPrime.AnyUriXmlPrime::AnyUri^
The URI of the document to retrieve.
- document
Type: out XmlPrime.ResolvedDocumentByRef XmlPrime.ResolvedDocumentXmlPrime::ResolvedDocument^%
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. |