Redigera

Dela via


RegistryKey.Handle Property

Definition

Gets a SafeRegistryHandle object that represents the registry key that the current RegistryKey object encapsulates.

public:
 property Microsoft::Win32::SafeHandles::SafeRegistryHandle ^ Handle { Microsoft::Win32::SafeHandles::SafeRegistryHandle ^ get(); };
public Microsoft.Win32.SafeHandles.SafeRegistryHandle Handle { get; }
public Microsoft.Win32.SafeHandles.SafeRegistryHandle Handle { [System.Security.SecurityCritical] get; }
[System.Runtime.InteropServices.ComVisible(false)]
public Microsoft.Win32.SafeHandles.SafeRegistryHandle Handle { [System.Security.SecurityCritical] get; }
member this.Handle : Microsoft.Win32.SafeHandles.SafeRegistryHandle
[<get: System.Security.SecurityCritical>]
member this.Handle : Microsoft.Win32.SafeHandles.SafeRegistryHandle
[<get: System.Security.SecurityCritical>]
[<System.Runtime.InteropServices.ComVisible(false)>]
member this.Handle : Microsoft.Win32.SafeHandles.SafeRegistryHandle
Public ReadOnly Property Handle As SafeRegistryHandle

Property Value

The handle to the registry key.

Attributes

Exceptions

The registry key is closed. Closed keys cannot be accessed.

The user does not have the necessary registry rights.

A system error occurred, such as deletion of the current key.

The user does not have the permissions required to read the key.

Applies to