RegistryKey.Handle 屬性

定義

取得 SafeRegistryHandle 物件,這個物件表示目前 RegistryKey 物件所封裝的登錄機碼。

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

屬性值

登錄機碼的控制代碼。

屬性

例外狀況

登錄機碼已關閉。 無法存取已關閉的機碼。

使用者沒有必要的登錄權限。

發生系統錯誤,例如刪除目前的機碼。

使用者沒有讀取機碼所需之權限。

適用於