RegistryKey.FromHandle Metoda

Definice

Vytvoří klíč registru ze zadaného popisovače.

Přetížení

FromHandle(SafeRegistryHandle)

Vytvoří klíč registru ze zadaného popisovače.

FromHandle(SafeRegistryHandle, RegistryView)

Vytvoří klíč registru ze zadaného popisovače a nastavení zobrazení registru.

FromHandle(SafeRegistryHandle)

Zdroj:
RegistryKey.cs

Vytvoří klíč registru ze zadaného popisovače.

public:
 static Microsoft::Win32::RegistryKey ^ FromHandle(Microsoft::Win32::SafeHandles::SafeRegistryHandle ^ handle);
public static Microsoft.Win32.RegistryKey FromHandle (Microsoft.Win32.SafeHandles.SafeRegistryHandle handle);
[System.Security.SecurityCritical]
public static Microsoft.Win32.RegistryKey FromHandle (Microsoft.Win32.SafeHandles.SafeRegistryHandle handle);
[System.Security.SecurityCritical]
[System.Runtime.InteropServices.ComVisible(false)]
public static Microsoft.Win32.RegistryKey FromHandle (Microsoft.Win32.SafeHandles.SafeRegistryHandle handle);
static member FromHandle : Microsoft.Win32.SafeHandles.SafeRegistryHandle -> Microsoft.Win32.RegistryKey
[<System.Security.SecurityCritical>]
static member FromHandle : Microsoft.Win32.SafeHandles.SafeRegistryHandle -> Microsoft.Win32.RegistryKey
[<System.Security.SecurityCritical>]
[<System.Runtime.InteropServices.ComVisible(false)>]
static member FromHandle : Microsoft.Win32.SafeHandles.SafeRegistryHandle -> Microsoft.Win32.RegistryKey
Public Shared Function FromHandle (handle As SafeRegistryHandle) As RegistryKey

Parametry

handle
SafeRegistryHandle

Popisovač klíče registru.

Návraty

Klíč registru.

Atributy

Výjimky

handle je null.

Uživatel nemá nezbytná oprávnění pro registr.

Uživatel nemá oprávnění potřebná k provedení této akce.

Platí pro

FromHandle(SafeRegistryHandle, RegistryView)

Zdroj:
RegistryKey.cs

Vytvoří klíč registru ze zadaného popisovače a nastavení zobrazení registru.

public:
 static Microsoft::Win32::RegistryKey ^ FromHandle(Microsoft::Win32::SafeHandles::SafeRegistryHandle ^ handle, Microsoft::Win32::RegistryView view);
public static Microsoft.Win32.RegistryKey FromHandle (Microsoft.Win32.SafeHandles.SafeRegistryHandle handle, Microsoft.Win32.RegistryView view);
[System.Security.SecurityCritical]
public static Microsoft.Win32.RegistryKey FromHandle (Microsoft.Win32.SafeHandles.SafeRegistryHandle handle, Microsoft.Win32.RegistryView view);
[System.Security.SecurityCritical]
[System.Runtime.InteropServices.ComVisible(false)]
public static Microsoft.Win32.RegistryKey FromHandle (Microsoft.Win32.SafeHandles.SafeRegistryHandle handle, Microsoft.Win32.RegistryView view);
static member FromHandle : Microsoft.Win32.SafeHandles.SafeRegistryHandle * Microsoft.Win32.RegistryView -> Microsoft.Win32.RegistryKey
[<System.Security.SecurityCritical>]
static member FromHandle : Microsoft.Win32.SafeHandles.SafeRegistryHandle * Microsoft.Win32.RegistryView -> Microsoft.Win32.RegistryKey
[<System.Security.SecurityCritical>]
[<System.Runtime.InteropServices.ComVisible(false)>]
static member FromHandle : Microsoft.Win32.SafeHandles.SafeRegistryHandle * Microsoft.Win32.RegistryView -> Microsoft.Win32.RegistryKey
Public Shared Function FromHandle (handle As SafeRegistryHandle, view As RegistryView) As RegistryKey

Parametry

handle
SafeRegistryHandle

Popisovač klíče registru.

view
RegistryView

Zobrazení registru, které se má použít.

Návraty

Klíč registru.

Atributy

Výjimky

Formát view je neplatný.

handle je null.

Uživatel nemá nezbytná oprávnění pro registr.

Uživatel nemá oprávnění potřebná k provedení této akce.

Poznámky

Parametr view pro tuto metodu se používá v následných operacích, jako je například otevírání podklíčů.

Pokud view je Registry64 , ale na počítači běží 32bitový operační systém, vrácený klíč použije Registry32 zobrazení.

Platí pro