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
コード例 #1
0
ファイル: MutableEntry.cs プロジェクト: skradel/Zetetic.Ldap
        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;
        }
コード例 #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);
        }