MutableEntry is a wrapper around a basic Zetetic.Ldap.Entry with change-tracking. You can create, inspect, rename, modify, and delete a MutableEntry, and save it to an LDAP host, without dealing with the semantics of the LDAP operations.
Inheritance: Zetetic.Ldap.Entry, IDisposable
Beispiel #1
0
        public static MutableEntry CreateUncommitted(string dn, params string[] objectClasses)
        {
            if (String.IsNullOrEmpty(dn))
                throw new ArgumentException("dn cannot be null or empty", "dn");

            MutableEntry entry = new MutableEntry(dn);
            entry.SetAttr("objectClass", objectClasses);
            return entry;
        }
Beispiel #2
0
        public static MutableEntry CreateUncommitted(string dn, params string[] objectClasses)
        {
            if (String.IsNullOrEmpty(dn))
            {
                throw new ArgumentException("dn cannot be null or empty", "dn");
            }

            MutableEntry entry = new MutableEntry(dn);

            entry.SetAttr("objectClass", objectClasses);
            return(entry);
        }