Version

ReplaceAll Method

Clears the existing sort conditions from the collection and replaces them with new entries in a single atomic operation.
Syntax
'Declaration
 
Public Sub ReplaceAll( _
   ByVal entries As System.Collections.Generic.IEnumerable(Of KeyValuePair(Of T,SortCondition)) _
) 
public void ReplaceAll( 
   System.Collections.Generic.IEnumerable<KeyValuePair<T,SortCondition>> entries
)

Parameters

entries
An enumberable of entries which contain the sort-able item over which the sort condition will be applied and the sort condition to apply to the sort-able item.
Exceptions
ExceptionDescription
System.ArgumentNullExceptionentries is null.
System.ArgumentNullException If any sort condition is null.
System.ArgumentException If any sortable item is already has a sort condition applied to it in the collection.
System.InvalidOperationException There are more than 64 sort conditions.
Requirements

Target Platforms: Windows 8.1, Windows 8.1, Windows 8, 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

View on GitHub