 | 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.ClientAssembly: Hangfire.Core (in Hangfire.Core.dll) Version: 1.5.0.0
Syntaxpublic T GetJobParameter<T>(
string name
)
Public Function GetJobParameter(Of T) (
name As String
) As T
Parameters
- name
- Type: SystemString
The name of the parameter.
Type Parameters
- T
- The type of the parameter.
Return Value
Type:
TThe value of the given parameter if it exists or null otherwise.
Exceptions
See Also