DocumentSet.TryGetResource MethodDocumentSet.TryGetResource MethodDocumentSet::TryGetResource Method
- XmlPrime 4.0
- Other Versions ▼
Syntax
Public Function TryGetResource( _ uri As AnyUri, _ <Out>resource As ByRef IResolvedResource _ ) As Boolean
public bool TryGetResource( AnyUri uri, out IResolvedResource resource )
public: bool TryGetResource( AnyUri^ uri, [Out] IResolvedResource^% resource )
Parameters
- uri
Type: XmlPrime.AnyUriXmlPrime.AnyUriXmlPrime::AnyUri^
The URI of the resource to retrieve.
- resource
Type: out XmlPrime.IResolvedResourceByRef XmlPrime.IResolvedResourceXmlPrime::IResolvedResource^%
When this method returns, contains the unparsed text of the resource 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 resource, 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, or uri contains a fragment identifier. |
