IAppResourceServiceGetStaticResource Method (Guid, StaticResourceInfo, Boolean)

Gets the static resource.

Namespace:  Dundas.BI.AppResources
Assembly:  Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (24.3.0.1000)
Syntax
Stream? GetStaticResource(
	Guid id,
	out StaticResourceInfo?? staticResourceInfo,
	bool throwOnNotFound
)

Parameters

id
Type: SystemGuid
The static resource ID.
staticResourceInfo
Type: Dundas.BI.AppResourcesStaticResourceInfo
When this method returns, the output parameter contains an StaticResourceInfo of the stored resource.
throwOnNotFound
Type: SystemBoolean
Throws NotFoundException if resource is not found and parameter is set to , otherwise returns .

Return Value

Type: Stream
The static resource as a Stream or if not found.
Exceptions
ExceptionCondition
ArgumentExceptionstaticResourceInfo is not a valid non-empty string.
NotFoundException The static resource not found. This exception is only thrown if throwOnNotFound is .
See Also