IAppResourceServiceGetStaticResource(Guid, StaticResourceInfo, Boolean) Method |
Gets the static resource.
Namespace: Dundas.BI.AppResourcesAssembly: Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (26.2.0.1000)
SyntaxStream? GetStaticResource(
Guid id,
out StaticResourceInfo?? staticResourceInfo,
bool throwOnNotFound
)
Function GetStaticResource (
id As Guid,
<OutAttribute> ByRef staticResourceInfo As StaticResourceInfo,
throwOnNotFound As Boolean
) As Stream
Stream^ GetStaticResource(
Guid id,
[OutAttribute] StaticResourceInfo^% staticResourceInfo,
bool throwOnNotFound
)
abstract GetStaticResource :
id : Guid *
staticResourceInfo : StaticResourceInfo byref *
throwOnNotFound : bool -> Stream Parameters
- id Guid
- The static resource ID.
- staticResourceInfo StaticResourceInfo
- When this method returns, the output parameter contains an StaticResourceInfo of the stored resource.
- throwOnNotFound Boolean
- Throws NotFoundException if resource is not found and parameter is set to ,
otherwise returns .
Return Value
StreamThe static resource as a
Stream or
if not found.
Exceptions| Exception | Condition |
|---|
| ArgumentException | staticResourceInfo is not a valid non-empty string. |
| NotFoundException |
The static resource not found. This exception is only thrown if throwOnNotFound is .
|
See Also