Share via


DirectoryEntry.CommitChanges ()

The CommitChanges method saves changes that are made to a directory entry to the underlying directory store.

public void CommitChanges();
Public Sub CommitChanges()

Parameters

This method has no parameters.

Return Values

This method has no return values.

Security

Remarks

By default, changes to properties are done locally to a cache, and property values to be read are cached after the first read. For more information, see UsePropertyCache.

Changes made to the cache include changes to the properties as well as calls to Add (if this is the newly created entry).

Caution   If you call RefreshCache before calling CommitChanges, any uncommitted changes to the property cache will be lost.

Requirements

Client Requires Windows XP Home Edition, Windows XP Professional, Windows Me, or Windows 98.
Server Requires Windows Server 2003, Windows 2000, or Windows NT 4.0.
Namespace

Defined in System.DirectoryServices.

Assembly

Requires System.DirectoryServices (in System.DirectoryServices.dll).

.NET Framework

Requires .NET Framework 1.0.

See Also

DirectoryEntries.Add, DirectoryEntries.Remove, DirectoryEntry.RefreshCache, DirectoryEntry.UsePropertyCache, DirectoryEntry Class, DirectoryEntry Methods, DirectoryEntry Members (Visual J# Syntax), Managed Extensions for C++ Programming, System.DirectoryServices Namespace