SharedDocumentSet.Resource MethodSharedDocumentSet.Resource MethodSharedDocumentSet::Resource Method
Returns the resource with the specified URI.
Syntax
Public Overrides Function Resource( _ uri As AnyUri _ ) As IResolvedResource
public override IResolvedResource Resource( AnyUri uri )
public: virtual IResolvedResource^ Resource( AnyUri^ uri ) override
Parameters
- uri
Type: XmlPrime.AnyUriXmlPrime.AnyUriXmlPrime::AnyUri^
The URI of the unparsed text resource to be retrieved.
Return Value
Type: XmlPrime.IResolvedResourceXmlPrime.IResolvedResourceXmlPrime::IResolvedResource^
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. |