C# Class Novell.Directory.Ldap.LdapCompareAttrNames

Compares Ldap entries based on attribute name. An object of this class defines ordering when sorting LdapEntries, usually from search results. When using this Comparator, LdapEntry objects are sorted by the attribute names(s) passed in on the constructor, in ascending or descending order. The object is typically supplied to an implementation of the collection interfaces such as java.util.TreeSet which performs sorting. Comparison is performed via locale-sensitive Java String comparison, which may not correspond to the Ldap ordering rules by which an Ldap server would sort them.
Inheritance: System.Collections.IComparer
Afficher le fichier Open project: EventStore/csharp-ldap Class Usage Examples

Méthodes publiques

Méthode Description
Compare ( System object1, System object2 ) : int

Compares the the attributes of the first LdapEntry to the second. Only the values of the attributes named at the construction of this object will be compared. Multi-valued attributes compare on the first value only.

Equals ( System comparator ) : bool

Determines if this comparator is equal to the comparator passed in. This will return true if the comparator is an instance of LdapCompareAttrNames and compares the same attributes names in the same order.

LdapCompareAttrNames ( System attrName ) : System

Constructs an object that sorts results by a single attribute, in ascending order.

LdapCompareAttrNames ( System attrName, bool ascendingFlag ) : System

Constructs an object that sorts results by a single attribute, in either ascending or descending order.

Private Methods

Méthode Description
InitBlock ( ) : void

Method Details

Compare() public méthode

Compares the the attributes of the first LdapEntry to the second. Only the values of the attributes named at the construction of this object will be compared. Multi-valued attributes compare on the first value only.
public Compare ( System object1, System object2 ) : int
object1 System Target entry for comparison. /// ///
object2 System Entry to be compared to. /// ///
Résultat int

Equals() public méthode

Determines if this comparator is equal to the comparator passed in. This will return true if the comparator is an instance of LdapCompareAttrNames and compares the same attributes names in the same order.
public Equals ( System comparator ) : bool
comparator System
Résultat bool

LdapCompareAttrNames() public méthode

Constructs an object that sorts results by a single attribute, in ascending order.
public LdapCompareAttrNames ( System attrName ) : System
attrName System Name of an attribute by which to sort. /// ///
Résultat System

LdapCompareAttrNames() public méthode

Constructs an object that sorts results by a single attribute, in either ascending or descending order.
public LdapCompareAttrNames ( System attrName, bool ascendingFlag ) : System
attrName System Name of an attribute to sort by. /// ///
ascendingFlag bool True specifies ascending order; false specifies /// descending order. ///
Résultat System