| ISettingsGroupGetSettingT Method (String, T) |
Gets the setting with the specified id.
Namespace: Sdl.Core.SettingsAssembly: Sdl.Core.Settings (in Sdl.Core.Settings.dll) Version: 1.8.0.0 (1.8.2564.0)
SyntaxSetting<T> GetSetting<T>(
string settingId,
T defaultValue
)
Function GetSetting(Of T) (
settingId As String,
defaultValue As T
) As Setting(Of T)
generic<typename T>
Setting<T>^ GetSetting(
String^ settingId,
T defaultValue
)
abstract GetSetting :
settingId : string *
defaultValue : 'T -> Setting<'T>
Parameters
- settingId
- Type: SystemString
The id of the setting. - defaultValue
- Type: T
The default value for the setting if no value can be found.
Type Parameters
- T
- The type of the setting value.
Return Value
Type:
SettingTThe setting.
RemarksWhen no value is defined in the settings group itself, the parent chain is searched
for an inherited value. If no inherited value can be found, the default value provided by the settings group implementation is returned.
See Also
Comments