Microsoft.Win32.SafeHandles.SafeRegistryHandle Class

Represents a safe handle to the Windows registry.

See Also: SafeRegistryHandle Members

Syntax

public sealed class SafeRegistryHandle : SafeHandleZeroOrMinusOneIsInvalid

Remarks

You can use platform invoke on the native RegCreateKeyEx Windows function to obtain a Microsoft.Win32.SafeHandles.SafeRegistryHandle object, and then use it to create registry keys with the Microsoft.Win32.RegistryKey.FromHandle(SafeRegistryHandle, Microsoft.Win32.RegistryView) method.

Requirements

Namespace: Microsoft.Win32.SafeHandles
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 4.0.0.0