IAppConfigGetValueOrDefault Method

Gets the value of the specified setting in the specified scope, or the setting's default value if it was not set at the specified scope.

Namespace:  Dundas.BI.Configuration
Assembly:  Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (24.3.0.1000)
Syntax
Object GetValueOrDefault(
	Guid settingId,
	AppSettingScope scope,
	Object? scopeTarget
)

Parameters

settingId
Type: SystemGuid
The ID of the setting.
scope
Type: Dundas.BI.ConfigurationAppSettingScope
The specific scope to get the setting from.
scopeTarget
Type: SystemObject
The name of the server or ID of the group (ignored if scope is not Server or ServerGroup).

Return Value

Type: Object
The value of the setting with the specified ID, or the default value for the setting if there is no value for that setting in the specified scope.
Exceptions
ExceptionCondition
ArgumentException

settingId is empty.

-or-

scope is Server and scopeTarget is empty, , or not a String.

-or-

scope is ServerGroup and scopeTarget is less than or equal to zero, or not an Int64.

ArgumentOutOfRangeExceptionscope is not one of the AppSettingScope values.
See Also