Share via


RegistryTools.DoesRegistryKeyExistInLocalMachineRoot(String, Boolean) Method

Definition

Determines if a key exists in the HKLM root Registry

public bool DoesRegistryKeyExistInLocalMachineRoot (string regKeyPath, bool use64Bit = false);
abstract member DoesRegistryKeyExistInLocalMachineRoot : string * bool -> bool
override this.DoesRegistryKeyExistInLocalMachineRoot : string * bool -> bool
Public Function DoesRegistryKeyExistInLocalMachineRoot (regKeyPath As String, Optional use64Bit As Boolean = false) As Boolean

Parameters

regKeyPath
String

Path to the registry key in the format key\subkey\subsubkey

use64Bit
Boolean

if true, it uses the 64 bit registry, otherwise 32 bit is used

Returns

True if key exists, false if it does not

Implements

Applies to