C# Class Zetetic.Ldap.MutableEntry

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
Afficher le fichier Open project: skradel/Zetetic.Ldap Class Usage Examples

Protected Properties

Свойство Type Description
_changes DirectoryAttributeModification>.Dictionary

Méthodes publiques

Méthode Description
AppendAttrValue ( string attrName, string value ) : void
ClearAttr ( string attrName ) : void

Replace all values of 'attrName' with the empty string.

CommitChanges ( System.DirectoryServices.Protocols.LdapConnection ldap ) : void

Send all pending changes to the directory service. If there is a pending rename / re-superior, it will fire first.

ContainsAttrValue ( string propName, object value ) : bool
CreateUncommitted ( string dn ) : MutableEntry
Delete ( System.DirectoryServices.Protocols.LdapConnection ldap ) : void
Dispose ( ) : void
GetAttrStringValue ( string propName ) : string
HasAttribute ( string attrName ) : bool
MutableEntry ( System.DirectoryServices.Protocols.SearchResultEntry se ) : System
MutableEntry ( string dn ) : System
RemoveAttrValue ( string attrName, string value ) : void

On a new/uncommitted entry, check for any in-queue Add / Replace operations on 'propName' and remove 'value' if present. On a regular existing entry, queue a deletion of the specified value.

SetAttr ( string attrName, object values ) : void

Replace the values of 'propName' with 'values'. If there is already an in-flight Replace request on 'propName', this method will add to its values.

SetAttr ( string attrName, string value ) : void

Replace the values of 'propName' with 'value'. If there is already an in-flight Replace request on 'propName', this method will add to its values.

Méthodes protégées

Méthode Description
CheckForDeletion ( ) : void
Dispose ( bool isDisposing ) : void

Private Methods

Méthode Description
ChangesAsDAMC ( ) : System.DirectoryServices.Protocols.DirectoryAttributeModificationCollection

Collect the set of pending modifications for sending to the LDAP DSA

Method Details

AppendAttrValue() public méthode

public AppendAttrValue ( string attrName, string value ) : void
attrName string
value string
Résultat void

CheckForDeletion() protected méthode

protected CheckForDeletion ( ) : void
Résultat void

ClearAttr() public méthode

Replace all values of 'attrName' with the empty string.
public ClearAttr ( string attrName ) : void
attrName string
Résultat void

CommitChanges() public méthode

Send all pending changes to the directory service. If there is a pending rename / re-superior, it will fire first.
public CommitChanges ( System.DirectoryServices.Protocols.LdapConnection ldap ) : void
ldap System.DirectoryServices.Protocols.LdapConnection
Résultat void

ContainsAttrValue() public méthode

public ContainsAttrValue ( string propName, object value ) : bool
propName string
value object
Résultat bool

CreateUncommitted() public static méthode

public static CreateUncommitted ( string dn ) : MutableEntry
dn string
Résultat MutableEntry

Delete() public méthode

public Delete ( System.DirectoryServices.Protocols.LdapConnection ldap ) : void
ldap System.DirectoryServices.Protocols.LdapConnection
Résultat void

Dispose() public méthode

public Dispose ( ) : void
Résultat void

Dispose() protected méthode

protected Dispose ( bool isDisposing ) : void
isDisposing bool
Résultat void

GetAttrStringValue() public méthode

public GetAttrStringValue ( string propName ) : string
propName string
Résultat string

HasAttribute() public méthode

public HasAttribute ( string attrName ) : bool
attrName string
Résultat bool

MutableEntry() public méthode

public MutableEntry ( System.DirectoryServices.Protocols.SearchResultEntry se ) : System
se System.DirectoryServices.Protocols.SearchResultEntry
Résultat System

MutableEntry() public méthode

public MutableEntry ( string dn ) : System
dn string
Résultat System

RemoveAttrValue() public méthode

On a new/uncommitted entry, check for any in-queue Add / Replace operations on 'propName' and remove 'value' if present. On a regular existing entry, queue a deletion of the specified value.
public RemoveAttrValue ( string attrName, string value ) : void
attrName string
value string
Résultat void

SetAttr() public méthode

Replace the values of 'propName' with 'values'. If there is already an in-flight Replace request on 'propName', this method will add to its values.
public SetAttr ( string attrName, object values ) : void
attrName string
values object
Résultat void

SetAttr() public méthode

Replace the values of 'propName' with 'value'. If there is already an in-flight Replace request on 'propName', this method will add to its values.
public SetAttr ( string attrName, string value ) : void
attrName string
value string
Résultat void

Property Details

_changes protected_oe property

protected Dictionary _changes
Résultat DirectoryAttributeModification>.Dictionary