AssignToOrRemoveFromLine Method
- Last UpdatedNov 06, 2025
- 1 minute read
The AssignToOrRemoveFromLine() method assigns a work order to a line or removes it. If performing an assignment, the position, aka sequence number, in the line's work order queue can be specified. (Note: the name of the method is slightly different from the corresponding stored procedure due to a warning generated by Visual Studio when using the prefix "un".)
'Declaration
Public Shared Sub AssignToOrRemoveFromLine( _
ByVal woId As String, _
ByVal assign As Nullable(Of Boolean), _
ByVal lineId As Integer, _
ByVal queueSequenceNumber As Nullable(Of Integer) _
)
'Usage
Dim woId As String
Dim assign As Nullable(Of Boolean)
Dim lineId As Integer
Dim queueSequenceNumber As Nullable(Of Integer)
WO.AssignToOrRemoveFromLine(woId, assign, lineId, queueSequenceNumber)
public static void AssignToOrRemoveFromLine(
string woId,
Nullable<bool> assign,
int lineId,
Nullable<int> queueSequenceNumber
)
Parameters
- woId
- Required. Holds the ID of the work order.
- assign
- Optional. Indicates whether the operation is an assignment or not. Default is assignment.
- lineId
- Required. The identifier of the line to assign the work order to.
- queueSequenceNumber
- Optional. Where in the queue of the line's work orders to place this work order.