Click or drag to resize

JobSettingAttribute Class

Indicates that a property should be added to the job settings for a job.
Inheritance Hierarchy
SystemObject
  SystemAttribute
    Ookii.Jumbo.Jet.JobsJobSettingAttribute

Namespace:  Ookii.Jumbo.Jet.Jobs
Assembly:  Ookii.Jumbo.Jet (in Ookii.Jumbo.Jet.dll) Version: 2.0.0
Syntax
public sealed class JobSettingAttribute : Attribute

The JobSettingAttribute type exposes the following members.

Constructors
  NameDescription
Public methodJobSettingAttribute
Initializes a new instance of the JobSettingAttribute class that will use "JobBuilderClassName.PropertyName" as the setting's key.
Public methodJobSettingAttribute(String)
Initializes a new instance of the JobSettingAttribute class with the specified key.
Top
Properties
  NameDescription
Public propertyKey
Gets the key used for the setting in the settings dictionary.
Public propertyTypeId
When implemented in a derived class, gets a unique identifier for this Attribute.
(Inherited from Attribute.)
Top
Methods
  NameDescription
Public methodEquals
Returns a value that indicates whether this instance is equal to a specified object.
(Inherited from Attribute.)
Public methodGetHashCode
Returns the hash code for this instance.
(Inherited from Attribute.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIsDefaultAttribute
When overridden in a derived class, indicates whether the value of this instance is the default value for the derived class.
(Inherited from Attribute.)
Public methodMatch
When overridden in a derived class, returns a value that indicates whether this instance equals a specified object.
(Inherited from Attribute.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Remarks

You can apply this attribute to properties of a job runner class that inherits from BaseJobRunner. Call the ApplyJobPropertiesAndSettings(JobConfiguration) method after creating your JobConfiguration to add the properties tot the job settings.

The JobBuilderJob class automatically do this after the JobConfiguration has been created.

See Also