IResourceFileServiceGetFileOnDisk Method |
Gets the path to an on-disk location for the resource.
Namespace:
Dundas.BI.FileSystem
Assembly:
Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (8.0.2.1001)
Syntaxstring GetFileOnDisk(
Guid resourceId
)
Function GetFileOnDisk (
resourceId As Guid
) As String
String^ GetFileOnDisk(
Guid resourceId
)
abstract GetFileOnDisk :
resourceId : Guid -> string
Parameters
- resourceId
- Type: SystemGuid
The ID of the resource.
Return Value
Type:
String
The path to an on-disk location for the resource.
Exceptions| 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. |
| OperationFailedException | The operation failed. Refer to inner exception for more details. |
| NoPrivilegeException | The caller does not have the Read privilege on the resource. |
| InvalidSessionException | The caller context is not associated with a valid session. |
Remarks
The contents of resources are stored in either the application database or the data warehouse database, depending
on the type of resource. Occasionally, code which needs to use the resource requires it to be a file on the physical
disk rather than a byte stream. This method facilitates this scenario by automatically reading the bytes from the
appropriate database and creating a physical file from the byte stream. The path to the file is returned.
See Also