Registry

Overview

Registry helper class; only available on .NET and Windows.

Location

  • Reference:
    • Elements.dll  .NET, .NET Core 6.0, .NET Standard 2.0
    • Elements.fx  Island-Windows
  • Namespace: RemObjects.Elements.RTL
  • Platforms: .NET, .NET Core 6.0, .NET Standard 2.0, Island-Windows

 

ClassesRoot

Classes root instance.

 

class property ClassesRoot: RegistryHive read;

 

class RegistryHive ClassesRoot { get; }

 

static var ClassesRoot: RegistryHive { get{} }

 

Shared ReadOnly Property ClassesRoot() As RegistryHive

CurrentConfig

Current config hive.

 

class property CurrentConfig: RegistryHive read;

 

class RegistryHive CurrentConfig { get; }

 

static var CurrentConfig: RegistryHive { get{} }

 

Shared ReadOnly Property CurrentConfig() As RegistryHive

CurrentUser

Current user hive.

 

class property CurrentUser: RegistryHive read;

 

class RegistryHive CurrentUser { get; }

 

static var CurrentUser: RegistryHive { get{} }

 

Shared ReadOnly Property CurrentUser() As RegistryHive

GetStringValue

Get the value of a string registry key from the registry matching the process bitness.

 

class method GetStringValue(aRootKey: not nullable RegistryHive; aKeyName: not nullable String; aValueName: not nullable String; aDefaultValue: nullable Object): nullable String

 

static String? GetStringValue(RegistryHive! aRootKey, String! aKeyName, String! aValueName, Object? aDefaultValue)

 

static func GetStringValue(_ aRootKey: RegistryHive, _ aKeyName: String, _ aValueName: String, _ aDefaultValue: Object?) -> String?

 

Shared Function GetStringValue(aRootKey As RegistryHive, aKeyName As String, aValueName As String, aDefaultValue As Object?) As String?

Parameters:

  • aRootKey:
  • aKeyName:
  • aValueName:
  • aDefaultValue:

GetStringValue32

Get the value of a string registry key from the 32 bits registry.

 

class method GetStringValue32(aRootKey: not nullable RegistryHive; aKeyName: not nullable String; aValueName: not nullable String; aDefaultValue: nullable Object): nullable String

 

static String? GetStringValue32(RegistryHive! aRootKey, String! aKeyName, String! aValueName, Object? aDefaultValue)

 

static func GetStringValue32(_ aRootKey: RegistryHive, _ aKeyName: String, _ aValueName: String, _ aDefaultValue: Object?) -> String?

 

Shared Function GetStringValue32(aRootKey As RegistryHive, aKeyName As String, aValueName As String, aDefaultValue As Object?) As String?

Parameters:

  • aRootKey:
  • aKeyName:
  • aValueName:
  • aDefaultValue:

GetStringValue64

Get the value of a string registry key from the 64 bits registry.

 

class method GetStringValue64(aRootKey: not nullable RegistryHive; aKeyName: not nullable String; aValueName: not nullable String; aDefaultValue: nullable Object): nullable String

 

static String? GetStringValue64(RegistryHive! aRootKey, String! aKeyName, String! aValueName, Object? aDefaultValue)

 

static func GetStringValue64(_ aRootKey: RegistryHive, _ aKeyName: String, _ aValueName: String, _ aDefaultValue: Object?) -> String?

 

Shared Function GetStringValue64(aRootKey As RegistryHive, aKeyName As String, aValueName As String, aDefaultValue As Object?) As String?

Parameters:

  • aRootKey:
  • aKeyName:
  • aValueName:
  • aDefaultValue:

GetSubKeyNames

Returns the names of all registry keys.

 

class method GetSubKeyNames(aRootKey: not nullable RegistryHive; aKeyName: not nullable String): nullable ImmutableList<String>

 

static ImmutableList<String>? GetSubKeyNames(RegistryHive! aRootKey, String! aKeyName)

 

static func GetSubKeyNames(_ aRootKey: RegistryHive, _ aKeyName: String) -> ImmutableList<String>?

 

Shared Function GetSubKeyNames(aRootKey As RegistryHive, aKeyName As String) As ImmutableList<String>?

Parameters:

  • aRootKey:
  • aKeyName:

GetValue

Get the value of a registry key from the default registry.

 

class method GetValue(aRootKey: not nullable RegistryHive; aKeyName: not nullable String; aValueName: not nullable String; aDefaultValue: nullable Object): nullable Object

 

static Object? GetValue(RegistryHive! aRootKey, String! aKeyName, String! aValueName, Object? aDefaultValue)

 

static func GetValue(_ aRootKey: RegistryHive, _ aKeyName: String, _ aValueName: String, _ aDefaultValue: Object?) -> Object?

 

Shared Function GetValue(aRootKey As RegistryHive, aKeyName As String, aValueName As String, aDefaultValue As Object?) As Object?

Parameters:

  • aRootKey:
  • aKeyName:
  • aValueName:
  • aDefaultValue:

GetValue32

Get the value of a registry key from the 64 bits registry.

 

class method GetValue32(aRootKey: not nullable RegistryHive; aKeyName: not nullable String; aValueName: not nullable String; aDefaultValue: nullable Object): nullable Object

 

static Object? GetValue32(RegistryHive! aRootKey, String! aKeyName, String! aValueName, Object? aDefaultValue)

 

static func GetValue32(_ aRootKey: RegistryHive, _ aKeyName: String, _ aValueName: String, _ aDefaultValue: Object?) -> Object?

 

Shared Function GetValue32(aRootKey As RegistryHive, aKeyName As String, aValueName As String, aDefaultValue As Object?) As Object?

Parameters:

  • aRootKey:
  • aKeyName:
  • aValueName:
  • aDefaultValue:

GetValue64

Get the value of a registry key from the 64 bits registry.

 

class method GetValue64(aRootKey: not nullable RegistryHive; aKeyName: not nullable String; aValueName: not nullable String; aDefaultValue: nullable Object): nullable Object

 

static Object? GetValue64(RegistryHive! aRootKey, String! aKeyName, String! aValueName, Object? aDefaultValue)

 

static func GetValue64(_ aRootKey: RegistryHive, _ aKeyName: String, _ aValueName: String, _ aDefaultValue: Object?) -> Object?

 

Shared Function GetValue64(aRootKey As RegistryHive, aKeyName As String, aValueName As String, aDefaultValue As Object?) As Object?

Parameters:

  • aRootKey:
  • aKeyName:
  • aValueName:
  • aDefaultValue:

KeyExists

 

class method KeyExists(aRootKey: not nullable RegistryHive; aKeyName: not nullable String): Boolean

 

static Boolean KeyExists(RegistryHive! aRootKey, String! aKeyName)

 

static func KeyExists(_ aRootKey: RegistryHive, _ aKeyName: String) -> Boolean

 

Shared Function KeyExists(aRootKey As RegistryHive, aKeyName As String) As Boolean

Parameters:

  • aRootKey:
  • aKeyName:

LocalMachine

Local machine hive.

 

class property LocalMachine: RegistryHive read;

 

class RegistryHive LocalMachine { get; }

 

static var LocalMachine: RegistryHive { get{} }

 

Shared ReadOnly Property LocalMachine() As RegistryHive

PerformanceData

Performance data hive.

 

class property PerformanceData: RegistryHive read;

 

class RegistryHive PerformanceData { get; }

 

static var PerformanceData: RegistryHive { get{} }

 

Shared ReadOnly Property PerformanceData() As RegistryHive

SetValue

Sets a value in the registry.

 

class method SetValue(aRootKey: not nullable RegistryHive; aKeyName: not nullable String; aValueName: not nullable String; aValue: Object)

 

static void SetValue(RegistryHive! aRootKey, String! aKeyName, String! aValueName, Object aValue)

 

static func SetValue(_ aRootKey: RegistryHive, _ aKeyName: String, _ aValueName: String, _ aValue: Object)

 

Shared Sub SetValue(aRootKey As RegistryHive, aKeyName As String, aValueName As String, aValue As Object)

Parameters:

  • aRootKey:
  • aKeyName:
  • aValueName:
  • aValue:

Users

Users hive.

 

class property Users: RegistryHive read;

 

class RegistryHive Users { get; }

 

static var Users: RegistryHive { get{} }

 

Shared ReadOnly Property Users() As RegistryHive

 

ClassesRoot

Classes root instance.

 

class property ClassesRoot: RegistryHive read;

 

class RegistryHive ClassesRoot { get; }

 

static var ClassesRoot: RegistryHive { get{} }

 

Shared ReadOnly Property ClassesRoot() As RegistryHive

CurrentConfig

Current config hive.

 

class property CurrentConfig: RegistryHive read;

 

class RegistryHive CurrentConfig { get; }

 

static var CurrentConfig: RegistryHive { get{} }

 

Shared ReadOnly Property CurrentConfig() As RegistryHive

CurrentUser

Current user hive.

 

class property CurrentUser: RegistryHive read;

 

class RegistryHive CurrentUser { get; }

 

static var CurrentUser: RegistryHive { get{} }

 

Shared ReadOnly Property CurrentUser() As RegistryHive

LocalMachine

Local machine hive.

 

class property LocalMachine: RegistryHive read;

 

class RegistryHive LocalMachine { get; }

 

static var LocalMachine: RegistryHive { get{} }

 

Shared ReadOnly Property LocalMachine() As RegistryHive

PerformanceData

Performance data hive.

 

class property PerformanceData: RegistryHive read;

 

class RegistryHive PerformanceData { get; }

 

static var PerformanceData: RegistryHive { get{} }

 

Shared ReadOnly Property PerformanceData() As RegistryHive

Users

Users hive.

 

class property Users: RegistryHive read;

 

class RegistryHive Users { get; }

 

static var Users: RegistryHive { get{} }

 

Shared ReadOnly Property Users() As RegistryHive

 

GetStringValue

Get the value of a string registry key from the registry matching the process bitness.

 

class method GetStringValue(aRootKey: not nullable RegistryHive; aKeyName: not nullable String; aValueName: not nullable String; aDefaultValue: nullable Object): nullable String

 

static String? GetStringValue(RegistryHive! aRootKey, String! aKeyName, String! aValueName, Object? aDefaultValue)

 

static func GetStringValue(_ aRootKey: RegistryHive, _ aKeyName: String, _ aValueName: String, _ aDefaultValue: Object?) -> String?

 

Shared Function GetStringValue(aRootKey As RegistryHive, aKeyName As String, aValueName As String, aDefaultValue As Object?) As String?

Parameters:

  • aRootKey:
  • aKeyName:
  • aValueName:
  • aDefaultValue:

GetStringValue32

Get the value of a string registry key from the 32 bits registry.

 

class method GetStringValue32(aRootKey: not nullable RegistryHive; aKeyName: not nullable String; aValueName: not nullable String; aDefaultValue: nullable Object): nullable String

 

static String? GetStringValue32(RegistryHive! aRootKey, String! aKeyName, String! aValueName, Object? aDefaultValue)

 

static func GetStringValue32(_ aRootKey: RegistryHive, _ aKeyName: String, _ aValueName: String, _ aDefaultValue: Object?) -> String?

 

Shared Function GetStringValue32(aRootKey As RegistryHive, aKeyName As String, aValueName As String, aDefaultValue As Object?) As String?

Parameters:

  • aRootKey:
  • aKeyName:
  • aValueName:
  • aDefaultValue:

GetStringValue64

Get the value of a string registry key from the 64 bits registry.

 

class method GetStringValue64(aRootKey: not nullable RegistryHive; aKeyName: not nullable String; aValueName: not nullable String; aDefaultValue: nullable Object): nullable String

 

static String? GetStringValue64(RegistryHive! aRootKey, String! aKeyName, String! aValueName, Object? aDefaultValue)

 

static func GetStringValue64(_ aRootKey: RegistryHive, _ aKeyName: String, _ aValueName: String, _ aDefaultValue: Object?) -> String?

 

Shared Function GetStringValue64(aRootKey As RegistryHive, aKeyName As String, aValueName As String, aDefaultValue As Object?) As String?

Parameters:

  • aRootKey:
  • aKeyName:
  • aValueName:
  • aDefaultValue:

GetSubKeyNames

Returns the names of all registry keys.

 

class method GetSubKeyNames(aRootKey: not nullable RegistryHive; aKeyName: not nullable String): nullable ImmutableList<String>

 

static ImmutableList<String>? GetSubKeyNames(RegistryHive! aRootKey, String! aKeyName)

 

static func GetSubKeyNames(_ aRootKey: RegistryHive, _ aKeyName: String) -> ImmutableList<String>?

 

Shared Function GetSubKeyNames(aRootKey As RegistryHive, aKeyName As String) As ImmutableList<String>?

Parameters:

  • aRootKey:
  • aKeyName:

GetValue

Get the value of a registry key from the default registry.

 

class method GetValue(aRootKey: not nullable RegistryHive; aKeyName: not nullable String; aValueName: not nullable String; aDefaultValue: nullable Object): nullable Object

 

static Object? GetValue(RegistryHive! aRootKey, String! aKeyName, String! aValueName, Object? aDefaultValue)

 

static func GetValue(_ aRootKey: RegistryHive, _ aKeyName: String, _ aValueName: String, _ aDefaultValue: Object?) -> Object?

 

Shared Function GetValue(aRootKey As RegistryHive, aKeyName As String, aValueName As String, aDefaultValue As Object?) As Object?

Parameters:

  • aRootKey:
  • aKeyName:
  • aValueName:
  • aDefaultValue:

GetValue32

Get the value of a registry key from the 64 bits registry.

 

class method GetValue32(aRootKey: not nullable RegistryHive; aKeyName: not nullable String; aValueName: not nullable String; aDefaultValue: nullable Object): nullable Object

 

static Object? GetValue32(RegistryHive! aRootKey, String! aKeyName, String! aValueName, Object? aDefaultValue)

 

static func GetValue32(_ aRootKey: RegistryHive, _ aKeyName: String, _ aValueName: String, _ aDefaultValue: Object?) -> Object?

 

Shared Function GetValue32(aRootKey As RegistryHive, aKeyName As String, aValueName As String, aDefaultValue As Object?) As Object?

Parameters:

  • aRootKey:
  • aKeyName:
  • aValueName:
  • aDefaultValue:

GetValue64

Get the value of a registry key from the 64 bits registry.

 

class method GetValue64(aRootKey: not nullable RegistryHive; aKeyName: not nullable String; aValueName: not nullable String; aDefaultValue: nullable Object): nullable Object

 

static Object? GetValue64(RegistryHive! aRootKey, String! aKeyName, String! aValueName, Object? aDefaultValue)

 

static func GetValue64(_ aRootKey: RegistryHive, _ aKeyName: String, _ aValueName: String, _ aDefaultValue: Object?) -> Object?

 

Shared Function GetValue64(aRootKey As RegistryHive, aKeyName As String, aValueName As String, aDefaultValue As Object?) As Object?

Parameters:

  • aRootKey:
  • aKeyName:
  • aValueName:
  • aDefaultValue:

KeyExists

 

class method KeyExists(aRootKey: not nullable RegistryHive; aKeyName: not nullable String): Boolean

 

static Boolean KeyExists(RegistryHive! aRootKey, String! aKeyName)

 

static func KeyExists(_ aRootKey: RegistryHive, _ aKeyName: String) -> Boolean

 

Shared Function KeyExists(aRootKey As RegistryHive, aKeyName As String) As Boolean

Parameters:

  • aRootKey:
  • aKeyName:

SetValue

Sets a value in the registry.

 

class method SetValue(aRootKey: not nullable RegistryHive; aKeyName: not nullable String; aValueName: not nullable String; aValue: Object)

 

static void SetValue(RegistryHive! aRootKey, String! aKeyName, String! aValueName, Object aValue)

 

static func SetValue(_ aRootKey: RegistryHive, _ aKeyName: String, _ aValueName: String, _ aValue: Object)

 

Shared Sub SetValue(aRootKey As RegistryHive, aKeyName As String, aValueName As String, aValue As Object)

Parameters:

  • aRootKey:
  • aKeyName:
  • aValueName:
  • aValue: