DocumentSet.Resource MethodDocumentSet.Resource MethodDocumentSet::Resource Method
Returns the resource with the specified URI.
Syntax
Public Overridable Function Resource( _ uri As AnyUri _ ) As ResolvedResource
public virtual ResolvedResource Resource( AnyUri uri )
public: virtual ResolvedResource^ Resource( AnyUri^ uri )
Parameters
- uri
Type: XmlPrime.AnyUriXmlPrime.AnyUriXmlPrime::AnyUri^
The URI of the unparsed text resource to be retrieved.
Return Value
Type: XmlPrime.ResolvedResourceXmlPrime.ResolvedResourceXmlPrime::ResolvedResource^
A StreamStreamStream over the resource, or null
a null reference (Nothing
in Visual Basic)
nullptr
if the URI was not handled.
Exceptions
Exception | Condition |
ArgumentExceptionArgumentExceptionArgumentException | uri is not an absolute URI, or uri contains a fragment identifier. |
XdmExceptionXdmExceptionXdmException | An error occurred during a previous attempt to retrieve the resource. |
ExceptionExceptionException | An error occurred retrieving the resource. |