DocumentSet.Resource MethodDocumentSet.Resource MethodDocumentSet::Resource Method
Returns the resource with the specified URI.
Syntax
Public Overridable Function Resource( _ uri As AnyUri _ ) As System.IO.Stream
public virtual System.IO.Stream Resource( AnyUri uri )
public: virtual System.IO::Stream^ Resource( AnyUri^ uri )
Parameters
- uri
Type: XmlPrime.AnyUriXmlPrime.AnyUriXmlPrime::AnyUri^
The URI of the unparsed text resource to be retrieved.
Return Value
Type: System.IO.StreamSystem.IO.StreamSystem.IO::Stream^
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. |
