DataListSetSequenceDataItem Method | |
Data list puts new sequence number (when has a new sequence or prameter pAlwaysUpdate is true) and list sort by sequence
Namespace:
SOWIData.Helper
Assembly:
SOWIData.Helper (in SOWIData.Helper.dll) Version: 19.1.23.1 (19.1.23.622)
Syntax public static List<DataItem> SetSequence<DataItem>(
this List<DataItem> pList,
int pSequenceStep = 2,
bool pAlwaysUpdate = false
)
<ExtensionAttribute>
Public Shared Function SetSequence(Of DataItem) (
pList As List(Of DataItem),
Optional pSequenceStep As Integer = 2,
Optional pAlwaysUpdate As Boolean = false
) As List(Of DataItem)
Parameters
- pList
- Type: System.Collections.GenericListDataItem
List of data items - pSequenceStep (Optional)
- Type: SystemInt32
Sequence step as number of increment - pAlwaysUpdate (Optional)
- Type: SystemBoolean
Field Sequence puts new value
Type Parameters
- DataItem
- Data item type
Return Value
Type:
ListDataItemAdjusted sorted list of data items
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
ListDataItem. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
Remarks Data item type (class) must be implemented interface
ISequenceIf prameter NewSequence greater 0 then puts new sequence. The sequence number increment by parameter SequenceStep.
See Also