Saves any changes to the entry in the directory store.
[Visual Basic] Public Sub CommitChanges() [C#] public void CommitChanges(); [C++] public: void CommitChanges(); [JScript] public function CommitChanges();
These changes include changes to the DirectoryEntryPropertyValueCollection as well as calls to Create (if this is the newly created entry) or Remove (if this is the container).
CAUTION If you call RefreshCache before calling CommitChanges, any uncommitted changes to the property cache will be lost.
By default, changes to properties are done locally to a cache and reading property values is cached after the first read. For more information, see UsePropertyCache.
DirectoryEntry Class | DirectoryEntry Members | System.DirectoryServices Namespace | Create | Remove | RefreshCache | UsePropertyCache