RegistryKey.Handle Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de l’année 2024, nous abandonnerons progressivement le mécanisme de retour d’information GitHub Issues pour le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultez :Soumettre et afficher des commentaires pour