This documentation is archived and is not being maintained.

DirectoryEntry.CommitChanges Method

Saves any changes to the entry in the Active Directory store.

[Visual Basic]
Public Sub CommitChanges()
[C#]
public void CommitChanges();
[C++]
public: void CommitChanges();
[JScript]
public function CommitChanges();

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

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

.NET Framework Security: 

See Also

DirectoryEntry Class | DirectoryEntry Members | System.DirectoryServices Namespace | Add | Remove | RefreshCache | UsePropertyCache

Show: