DocumentSet.TryGetCollection MethodDocumentSet.TryGetCollection MethodDocumentSet::TryGetCollection Method
Syntax
Public Function TryGetCollection( _ uri As AnyUri, _ <Out>collection As ByRef System.Xml.XPath.IXPathNavigable[] _ ) As Boolean
public bool TryGetCollection( AnyUri uri, out System.Xml.XPath.IXPathNavigable[] collection )
public: bool TryGetCollection( AnyUri^ uri, [Out] array<System.Xml.XPath::IXPathNavigable^>% collection )
Parameters
- uri
Type: XmlPrime.AnyUriXmlPrime.AnyUriXmlPrime::AnyUri^
The URI of the collection to retrieve, or
nulla null reference (Nothingin Visual Basic)nullptrto retrieve the default collection.- collection
Type: out System.Xml.XPath.IXPathNavigable[]ByRef System.Xml.XPath.IXPathNavigable()
array<System.Xml.XPath::IXPathNavigable^>^%When this method returns, contains the collection 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 collection, 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. |
