Microsoft.Win32.RegistryKey.Close Method

Closes the key and flushes it to disk if its contents have been modified.

Syntax

public void Close ()

Remarks

Calling this method on system keys will have no effect, because system keys are never closed.

This method does nothing if you call it on an instance of RegistryKey that is already closed.

Requirements

Namespace: Microsoft.Win32
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0