| EnqueuedStateQueue Property |
Gets or sets a queue name to which a background job identifier
will be added.
Namespace: Hangfire.StatesAssembly: Hangfire.Core (in Hangfire.Core.dll) Version: 1.5.0.0
Syntax [NotNullAttribute]
public string Queue { get; set; }
<NotNullAttribute>
Public Property Queue As String
Get
Set
Property Value
Type:
StringA queue name that consist only of lowercase letters, digits and
underscores.
Exceptions Exception | Condition |
---|
ArgumentNullException |
The value specified for a set operation is ,
empty or consist only of white-space characters.
|
ArgumentException |
The value specified for a set operation is not a valid queue name.
|
Remarks Queue name must consist only of lowercase letters, digits and
underscores, other characters aren't permitted. Some examples:
- "critical" (good)
- "worker_1" (good)
- "documents queue" (bad, whitespace)
- "MyQueue" (bad, capital letters)
See Also