 | TaskContextGetSettingT(String, T) Method |
Gets a setting with the specified type and default value, checking first in the stage settings and then in the job settings.
Namespace: Ookii.Jumbo.JetAssembly: Ookii.Jumbo.Jet (in Ookii.Jumbo.Jet.dll) Version: 0.3.0+dc1307f20e065bb638e0b73a34cd216f57e486f1
Syntaxpublic T GetSetting<T>(
string key,
T defaultValue
)
Public Function GetSetting(Of T) (
key As String,
defaultValue As T
) As T
public:
generic<typename T>
T GetSetting(
String^ key,
T defaultValue
)
member GetSetting :
key : string *
defaultValue : 'T -> 'T
Parameters
- key String
- The name of the setting.
- defaultValue T
- The value to use if the setting is not present in the SettingsDictionary.
Type Parameters
- T
- The type of the setting.
Return Value
TThe value of the setting, or
defaultValue if the setting was not present in either the stage or job settings.
See Also