Xceed .NET Libraries Documentation
AssignComparer Method


Xceed.FileSystem Assembly > Xceed.FileSystem Namespace > FileSystemEventsSession Class : AssignComparer Method
An IComparer<T> where T is the ItemPair that will be used to sort the list of items.
Sorts the list of items to be processed using a specific comparer.
Syntax
'Declaration
 
Public Function AssignComparer( _
   ByVal comparer As IComparer(Of ItemPair) _
) As Boolean
'Usage
 
Dim instance As FileSystemEventsSession
Dim comparer As IComparer(Of ItemPair)
Dim value As Boolean
 
value = instance.AssignComparer(comparer)
public bool AssignComparer( 
   IComparer<ItemPair> comparer
)

Parameters

comparer
An IComparer<T> where T is the ItemPair that will be used to sort the list of items.

Return Value

true if the comparer was successfully assigned; false if the same comparer is already assigned.
Remarks

This method throws an exception if a different comparer is already assigned. By default, items are processed in a first-in first-out manner.

Requirements

Target Platforms: 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

Reference

FileSystemEventsSession Class
FileSystemEventsSession Members