Novell.Directory.Ldap.LdapAttributeSet.Remove C# (CSharp) Method

Remove() public method

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.
public Remove ( object object_Renamed ) : bool
object_Renamed object
return bool
        public override bool Remove(object object_Renamed)
        {
            System.String attributeName; //the name is the key to object in the HashMap
            if (object_Renamed is System.String)
            {
                attributeName = ((System.String) object_Renamed);
            }
            else
            {
                attributeName = ((LdapAttribute) object_Renamed).Name;
            }
            if ((System.Object) attributeName == null)
            {
                return false;
            }
            return (SupportClass.HashtableRemove(this.map, attributeName.ToUpper()) != null);
        }