Open this page in the API Guide

IAppResourceService.GetBuiltInResource Method

Gets the built-in resource.

Namespace:  Dundas.BI.AppResources
Assembly:  Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (25.1.0.1000)
Syntax
Stream? GetBuiltInResource(
	BuiltInResourceKind builtInResourceKind,
	Guid? tenantId,
	out BuiltInResourceInfo?? builtInResourceInfo,
	bool throwOnNotFound
)

Parameters

builtInResourceKind
Type: Dundas.BI.AppResources.BuiltInResourceKind
Kind of the built-in resource.
tenantId
Type: System.Nullable<Guid>
The tenant identifier.
builtInResourceInfo
Type: Dundas.BI.AppResources.BuiltInResourceInfo
When this method returns, the output parameter contains an BuiltInResourceInfo of the stored resource.
throwOnNotFound
Type: System.Boolean
Throws NotFoundException if resource is not found and parameter is set to true, otherwise returns null.

Return Value

Type: Stream
The application resource as a Stream or null if not found.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionbuiltInResourceKind is not one of the BuiltInResourceKind values.
ArgumentExceptiontenantId is Empty.
NotFoundException The built-in resource not found. This exception is only thrown if throwOnNotFound is true.
See Also