Unosquare
    Show / Hide Table of Contents

    Class LdapAttributeSet

    A set of LdapAttribute objects. An LdapAttributeSet is a collection of LdapAttribute classes as returned from an LdapEntry on a search or read operation. LdapAttributeSet may be also used to construct an entry to be added to a directory.

    Inheritance
    Object
    Dictionary<String, LdapAttribute>
    LdapAttributeSet
    Implements
    IDictionary<String, LdapAttribute>
    ICollection<KeyValuePair<String, LdapAttribute>>
    IDictionary
    ICollection
    IReadOnlyDictionary<String, LdapAttribute>
    IReadOnlyCollection<KeyValuePair<String, LdapAttribute>>
    IEnumerable<KeyValuePair<String, LdapAttribute>>
    IEnumerable
    ISerializable
    IDeserializationCallback
    Inherited Members
    Dictionary<String, LdapAttribute>.Add(String, LdapAttribute)
    System.Collections.Generic.Dictionary<System.String, Swan.Ldap.LdapAttribute>.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.String, Swan.Ldap.LdapAttribute>>.Add(System.Collections.Generic.KeyValuePair<System.String, Swan.Ldap.LdapAttribute>)
    System.Collections.Generic.Dictionary<System.String, Swan.Ldap.LdapAttribute>.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.String, Swan.Ldap.LdapAttribute>>.Contains(System.Collections.Generic.KeyValuePair<System.String, Swan.Ldap.LdapAttribute>)
    System.Collections.Generic.Dictionary<System.String, Swan.Ldap.LdapAttribute>.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.String, Swan.Ldap.LdapAttribute>>.Remove(System.Collections.Generic.KeyValuePair<System.String, Swan.Ldap.LdapAttribute>)
    Dictionary<String, LdapAttribute>.Clear()
    Dictionary<String, LdapAttribute>.ContainsKey(String)
    Dictionary<String, LdapAttribute>.ContainsValue(LdapAttribute)
    Dictionary<String, LdapAttribute>.GetEnumerator()
    System.Collections.Generic.Dictionary<System.String, Swan.Ldap.LdapAttribute>.System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<System.String, Swan.Ldap.LdapAttribute>>.GetEnumerator()
    Dictionary<String, LdapAttribute>.GetObjectData(SerializationInfo, StreamingContext)
    Dictionary<String, LdapAttribute>.OnDeserialization(Object)
    Dictionary<String, LdapAttribute>.Remove(String)
    Dictionary<String, LdapAttribute>.TryGetValue(String, LdapAttribute)
    System.Collections.Generic.Dictionary<System.String, Swan.Ldap.LdapAttribute>.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.String, Swan.Ldap.LdapAttribute>>.CopyTo(System.Collections.Generic.KeyValuePair<System.String, Swan.Ldap.LdapAttribute>[], System.Int32)
    Dictionary<String, LdapAttribute>.ICollection.CopyTo(Array, Int32)
    Dictionary<String, LdapAttribute>.IEnumerable.GetEnumerator()
    System.Collections.Generic.Dictionary<System.String, Swan.Ldap.LdapAttribute>.System.Collections.IDictionary.get_Item(System.Object)
    System.Collections.Generic.Dictionary<System.String, Swan.Ldap.LdapAttribute>.System.Collections.IDictionary.set_Item(System.Object, System.Object)
    Dictionary<String, LdapAttribute>.IDictionary.Add(Object, Object)
    Dictionary<String, LdapAttribute>.IDictionary.Contains(Object)
    Dictionary<String, LdapAttribute>.IDictionary.GetEnumerator()
    Dictionary<String, LdapAttribute>.IDictionary.Remove(Object)
    Dictionary<String, LdapAttribute>.Comparer
    Dictionary<String, LdapAttribute>.Count
    Dictionary<String, LdapAttribute>.Keys
    System.Collections.Generic.Dictionary<System.String, Swan.Ldap.LdapAttribute>.System.Collections.Generic.IDictionary<System.String, Swan.Ldap.LdapAttribute>.Keys
    System.Collections.Generic.Dictionary<System.String, Swan.Ldap.LdapAttribute>.System.Collections.Generic.IReadOnlyDictionary<System.String, Swan.Ldap.LdapAttribute>.Keys
    Dictionary<String, LdapAttribute>.Values
    System.Collections.Generic.Dictionary<System.String, Swan.Ldap.LdapAttribute>.System.Collections.Generic.IDictionary<System.String, Swan.Ldap.LdapAttribute>.Values
    System.Collections.Generic.Dictionary<System.String, Swan.Ldap.LdapAttribute>.System.Collections.Generic.IReadOnlyDictionary<System.String, Swan.Ldap.LdapAttribute>.Values
    Dictionary<String, LdapAttribute>.Item[String]
    System.Collections.Generic.Dictionary<System.String, Swan.Ldap.LdapAttribute>.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.String, Swan.Ldap.LdapAttribute>>.IsReadOnly
    Dictionary<String, LdapAttribute>.ICollection.IsSynchronized
    Dictionary<String, LdapAttribute>.ICollection.SyncRoot
    Dictionary<String, LdapAttribute>.IDictionary.IsFixedSize
    Dictionary<String, LdapAttribute>.IDictionary.IsReadOnly
    Dictionary<String, LdapAttribute>.IDictionary.Keys
    Dictionary<String, LdapAttribute>.IDictionary.Values
    Dictionary<String, LdapAttribute>.IDictionary.Item[Object]
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Swan.Ldap
    Syntax
    [Serializable]
    public class LdapAttributeSet : Dictionary<string, LdapAttribute>, IDictionary<string, LdapAttribute>, ICollection<KeyValuePair<string, LdapAttribute>>, IDictionary, ICollection, IReadOnlyDictionary<string, LdapAttribute>, IReadOnlyCollection<KeyValuePair<string, LdapAttribute>>, IEnumerable<KeyValuePair<string, LdapAttribute>>, IEnumerable, ISerializable, IDeserializationCallback

    Constructors

    LdapAttributeSet()

    Initializes a new instance of the LdapAttributeSet class.

    Declaration
    public LdapAttributeSet()

    Methods

    Add(LdapAttribute)

    Adds the specified attribute to this set if it is not already present. If an attribute with the same name already exists in the set then the specified attribute will not be added.

    Declaration
    public bool Add(LdapAttribute attr)
    Parameters
    Type Name Description
    LdapAttribute attr

    Object of type LdapAttribute.

    Returns
    Type Description
    Boolean

    true if the attribute was added.

    Contains(Object)

    Returns true if this set contains an attribute of the same name as the specified attribute.

    Declaration
    public bool Contains(object attr)
    Parameters
    Type Name Description
    Object attr

    Object of type LdapAttribute.

    Returns
    Type Description
    Boolean

    true if this set contains the specified attribute.

    GetSubset(String)

    Creates a new attribute set containing only the attributes that have the specified subtypes. For example, suppose an attribute set contains the following attributes:

    • cn
    • cn;lang-ja
    • sn;phonetic;lang-ja
    • sn;lang-us
    Calling the getSubset method and passing lang-ja as the argument, the method returns an attribute set containing the following attributes:.
    • cn;lang-ja
    • sn;phonetic;lang-ja

    Declaration
    public LdapAttributeSet GetSubset(string subtype)
    Parameters
    Type Name Description
    String subtype

    Semi-colon delimited list of subtypes to include. For example:

    • "lang-ja" specifies only Japanese language subtypes
    • "binary" specifies only binary subtypes
    • "binary;lang-ja" specifies only Japanese language subtypes which also are binary
    Note: Novell eDirectory does not currently support language subtypes. It does support the "binary" subtype.

    Returns
    Type Description
    LdapAttributeSet

    An attribute set containing the attributes that match the specified subtype.

    Remove(LdapAttribute)

    Removes the specified object from this set if it is present. If the specified object is of type LdapAttribute, the specified attribute will be removed. If the specified object is of type string, the attribute with a name that matches the string will be removed.

    Declaration
    public bool Remove(LdapAttribute entry)
    Parameters
    Type Name Description
    LdapAttribute entry

    The entry.

    Returns
    Type Description
    Boolean

    true if the object was removed.

    ToString()

    Returns a String that represents this instance.

    Declaration
    public override string ToString()
    Returns
    Type Description
    String

    A String that represents this instance.

    Overrides
    Object.ToString()

    Implements

    System.Collections.Generic.IDictionary<TKey,TValue>
    System.Collections.Generic.ICollection<T>
    System.Collections.IDictionary
    System.Collections.ICollection
    System.Collections.Generic.IReadOnlyDictionary<TKey,TValue>
    System.Collections.Generic.IReadOnlyCollection<T>
    System.Collections.Generic.IEnumerable<T>
    System.Collections.IEnumerable
    System.Runtime.Serialization.ISerializable
    System.Runtime.Serialization.IDeserializationCallback

    See Also

    LdapAttribute
    LdapEntry

    Comments

    Back to top Copyright © 2017-2019 Unosquare