Version

Insert Method (SortConditionCollection<T>)

Inserts a sort condition into the collection.
Syntax
'Declaration
 
Public Sub Insert( _
   ByVal index As Integer, _
   ByVal sortableItem As T, _
   ByVal sortCondition As SortCondition _
) 
public void Insert( 
   int index,
   T sortableItem,
   SortCondition sortCondition
)

Parameters

index
The 0-based index where the sort condition should be inserted.
sortableItem
The sort-able item over which the sort condition will be applied.
sortCondition
The sort condition to apply to the sort-able item.
Exceptions
ExceptionDescription
System.ArgumentOutOfRangeExceptionindex is less than 0 or greater than Count.
System.ArgumentNullExceptionsortableItem is null.
System.ArgumentNullExceptionsortCondition is null.
System.ArgumentExceptionsortableItem is already has a sort condition applied to it in the collection.
System.InvalidOperationException There are already 64 sort conditions in the collection.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also