/// <summary> /// Close the current registry key and flushes the state of the registry /// right away. /// </summary> public void Close() { Flush(); if (isRoot) { return; } RegistryApi.Close(this); Data = null; }
/// <summary> /// Close the current registry key and flushes the state of the registry /// right away. /// </summary> public void Close() { Flush(); // a handle to a remote hive must be closed, while one to a local // hive should not be closed if (!isRemoteRoot && IsRoot) { return; } RegistryApi.Close(this); handle = null; }