IResource |
| Exception | Condition |
|---|---|
| ArgumentException | resourceId is Empty. |
| InvalidOperationException | resourceId corresponds to an entry which is not a resource. |
| NotFoundException | The resource with the specified ID does not exist. |
| NoPrivilegeException | The caller does not have the Read privilege on the resource. |
| InvalidSessionException | The caller context is not associated with a valid session. |
| The stream returned by this method must be disposed before any further database access occurs on the calling thread. |