| FileTypeSettingsBaseGetSettingFromSettingsGroupT Method |
Checks whether the setting exists in the settings group, and retrieves its value (if it exists). If it does
not exist, the default value is returned instead.
Namespace: Sdl.FileTypeSupport.Framework.Core.SettingsAssembly: Sdl.FileTypeSupport.Framework.Core.Settings (in Sdl.FileTypeSupport.Framework.Core.Settings.dll) Version: 1.0.0.0 (1.0.2551.2)
Syntaxprotected T GetSettingFromSettingsGroup<T>(
ISettingsGroup settingsGroup,
string settingName,
T defaultValue
)
Protected Function GetSettingFromSettingsGroup(Of T) (
settingsGroup As ISettingsGroup,
settingName As String,
defaultValue As T
) As T
protected:
generic<typename T>
T GetSettingFromSettingsGroup(
ISettingsGroup^ settingsGroup,
String^ settingName,
T defaultValue
)
member GetSettingFromSettingsGroup :
settingsGroup : ISettingsGroup *
settingName : string *
defaultValue : 'T -> 'T
Parameters
- settingsGroup
- Type: Sdl.Core.SettingsISettingsGroup
The settings group in which the setting should be located. - settingName
- Type: SystemString
The name of the setting to retrieve. - defaultValue
- Type: T
The default value to return if the setting has not been found.
Type Parameters
- T
- The type of the setting to retrieve. The type must be the same as at the point
of save, or it will not be found. See UpdateSettingInSettingsGroupT(ISettingsGroup, String, T, T).
Return Value
Type:
T[Missing <returns> documentation for "M:Sdl.FileTypeSupport.Framework.Core.Settings.FileTypeSettingsBase.GetSettingFromSettingsGroup``1(Sdl.Core.Settings.ISettingsGroup,System.String,``0)"]
See Also
Comments