C# Класс 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.
Наследование: System.Collections.IComparer
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
InitBlock ( ) : void

Описание методов

Compare() публичный Метод

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. /// ///
Результат int

Equals() публичный Метод

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
Результат bool

LdapCompareAttrNames() публичный Метод

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. /// ///
Результат System

LdapCompareAttrNames() публичный Метод

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. ///
Результат System