| SettingsDictionaryGetJobOrStageSetting Method (JobConfiguration, StageConfiguration, String, String) |
Gets a setting's string value with the specified default value, checking first in the stage settings and then in the job settings.
Namespace:
Ookii.Jumbo.Jet.Jobs
Assembly:
Ookii.Jumbo.Jet (in Ookii.Jumbo.Jet.dll) Version: 2.0.0
Syntax public static string GetJobOrStageSetting(
JobConfiguration job,
StageConfiguration stage,
string key,
string defaultValue
)
Public Shared Function GetJobOrStageSetting (
job As JobConfiguration,
stage As StageConfiguration,
key As String,
defaultValue As String
) As String
public:
static String^ GetJobOrStageSetting(
JobConfiguration^ job,
StageConfiguration^ stage,
String^ key,
String^ defaultValue
)
static member GetJobOrStageSetting :
job : JobConfiguration *
stage : StageConfiguration *
key : string *
defaultValue : string -> string
Parameters
- job
- Type: Ookii.Jumbo.Jet.JobsJobConfiguration
The job configuration. - stage
- Type: Ookii.Jumbo.Jet.JobsStageConfiguration
The stage stage configuration. - key
- Type: SystemString
The name of the setting. - defaultValue
- Type: SystemString
The value to use if the setting is not present in the SettingsDictionary.
Return Value
Type:
StringThe value of the setting, or
defaultValue if the setting was not present in either the stage or job settings.
See Also