Method JobField
JobField<T>(Exposer<T, IDictionary<string, dynamic>>, string)
Exposes the field with the specified field descriptor ID.
public static DynamicListExposer<T, object> JobField<T>(this Exposer<T, IDictionary<string, dynamic>> field, string fieldSubName)
Parameters
field
Exposer<T, IDictionary<string, dynamic>>The fields exposer.
fieldSubName
stringThe field name.
Returns
- DynamicListExposer<T, object>
The exposed field.
Type Parameters
T
The type from which fields are exposed.
JobField<T>(Exposer<T, IDictionary<string, dynamic>>, FieldDescriptorID)
Exposes the field with the specified field descriptor ID.
public static DynamicListExposer<T, object> JobField<T>(this Exposer<T, IDictionary<string, dynamic>> field, FieldDescriptorID fieldDescriptorId)
Parameters
field
Exposer<T, IDictionary<string, dynamic>>The fields exposer.
fieldDescriptorId
FieldDescriptorIDThe field descriptor ID.
Returns
- DynamicListExposer<T, object>
The exposed field.
Type Parameters
T
The type from which fields are exposed.
Examples
The following example finds the jobs that match the specified job name.
var jobNameFieldId = DefaultJobSectionDefinition.NameFieldDescriptorID;
var jobsMatchingName = helper.Jobs.Read(JobExposers.FieldValues.JobField(jobNameFieldId).Equal("SomeJobNameToMatchOn"));
JobField<T>(Exposer<T, IDictionary<string, dynamic>>, FieldDescriptor)
Exposes the field with the specified field descriptor.
public static DynamicListExposer<T, object> JobField<T>(this Exposer<T, IDictionary<string, dynamic>> field, FieldDescriptor fieldDescriptor)
Parameters
field
Exposer<T, IDictionary<string, dynamic>>The field exposer.
fieldDescriptor
FieldDescriptorThe field descriptor.
Returns
- DynamicListExposer<T, object>
The exposed field.
Type Parameters
T
The type for which fields are exposed.