A Sandcastle Documented Class Library

# IAppConfigService GetInheritedValueForScope Method

Gets the effective value of the specified application setting that would be inherited by the specified scope if it didn't supply a value.

Namespace: Dundas.BI.Configuration
Assembly: Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (10.0.0.1002)
Syntax
C#
VB
C++
F#
Copy

    AppSettingValue GetInheritedValueForScope(
    	Guid settingId,
    	AppSettingScope scope,
    	Object scopeTarget
    )

    Function GetInheritedValueForScope (
    	settingId As Guid,
    	scope As AppSettingScope,
    	scopeTarget As Object
    ) As AppSettingValue

    AppSettingValue^ GetInheritedValueForScope(
    	Guid settingId,
    	AppSettingScope scope,
    	Object^ scopeTarget
    )

    abstract GetInheritedValueForScope :
            settingId : Guid *
            scope : AppSettingScope *
            scopeTarget : Object -> AppSettingValue

#### Parameters

settingId
  Type: System
  Guid
  The ID of the setting.
scope
  Type: Dundas.BI.Configuration
  AppSettingScope
  The scope.
scopeTarget
  Type: System
  Object
  The server name or server group ID (ignored if scope is not Server or ServerGroup). Specify
  to use the server name or server group ID from the current server.

#### Return Value

Type: AppSettingValue
An object containing the effective value of the setting from the perspective of the specified scope.
Exceptions

Exception | Condition
--- | ---
ArgumentException | settingId is Empty. -or- scope is Effective. -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.
NotFoundException | There was no registered setting corresponding to the provided setting ID.
NoPrivilegeException | The caller does not have system administration privileges.
InvalidSessionException | The caller context is not associated with a valid session.

See Also

#### Reference

IAppConfigService Interface
Dundas.BI.Configuration Namespace
IAppConfigService
GetEffectiveValueForScope(Guid, AppSettingScope, Object)