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