Click or drag to resize
CreatingContextGetJobParameterT Method
Gets the job parameter of the specified name if it exists. The parameter is deserialized from a JSON string value to the given type T.

Namespace: Hangfire.Client
Assembly: Hangfire.Core (in Hangfire.Core.dll) Version: 1.5.0.0
Syntax
public T GetJobParameter<T>(
	string name
)

Parameters

name
Type: SystemString
The name of the parameter.

Type Parameters

T
The type of the parameter.

Return Value

Type: T
The value of the given parameter if it exists or null otherwise.
Exceptions
ExceptionCondition
ArgumentNullExceptionThe name is null or empty.
InvalidOperationExceptionCould not deserialize the parameter value to the type T.
See Also