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 (8.0.2.1001)
SyntaxObject GetValueOrDefault(
Guid settingId,
AppSettingScope scope,
Object scopeTarget
)
Function GetValueOrDefault (
settingId As Guid,
scope As AppSettingScope,
scopeTarget As Object
) As Object
Object^ GetValueOrDefault(
Guid settingId,
AppSettingScope scope,
Object^ scopeTarget
)
abstract GetValueOrDefault :
settingId : Guid *
scope : AppSettingScope *
scopeTarget : Object -> Object
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| Exception | Condition |
|---|
| 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.
|
| ArgumentOutOfRangeException | scope is not one of the AppSettingScope values. |
See Also