Registry
Overview
Windows registry accessing class.
Location
- Reference: Island.fx
- Namespace: RemObjects.Elements.System
- Platforms: Windows
constructor protected
constructor
Registry()
init()
Registry()
Sub New()
ClassesRoot
Registry key for classes root.
const ClassesRoot: String = 'HKEY_CLASSES_ROOT'
const String ClassesRoot = "HKEY_CLASSES_ROOT"
static let ClassesRoot: String = "HKEY_CLASSES_ROOT"
static final String ClassesRoot = "HKEY_CLASSES_ROOT"
Const ClassesRoot As String = "HKEY_CLASSES_ROOT"
CurrentConfig
Registry key for current config.
const CurrentConfig: String = 'HKEY_CURRENT_CONFIG'
const String CurrentConfig = "HKEY_CURRENT_CONFIG"
static let CurrentConfig: String = "HKEY_CURRENT_CONFIG"
static final String CurrentConfig = "HKEY_CURRENT_CONFIG"
Const CurrentConfig As String = "HKEY_CURRENT_CONFIG"
CurrentUser
Registry key for current user.
const CurrentUser: String = 'HKEY_CURRENT_USER'
const String CurrentUser = "HKEY_CURRENT_USER"
static let CurrentUser: String = "HKEY_CURRENT_USER"
static final String CurrentUser = "HKEY_CURRENT_USER"
Const CurrentUser As String = "HKEY_CURRENT_USER"
DeleteExistedKey
class method DeleteExistedKey(KeyName: String): Boolean
static Boolean DeleteExistedKey(String KeyName)
static func DeleteExistedKey(_ KeyName: String) -> Boolean
static Boolean DeleteExistedKey(String KeyName)
Shared Function DeleteExistedKey(KeyName As String) As Boolean
Parameters:
- KeyName:
DeleteKey
class method DeleteKey(KeyName: String): Boolean
static Boolean DeleteKey(String KeyName)
static func DeleteKey(_ KeyName: String) -> Boolean
static Boolean DeleteKey(String KeyName)
Shared Function DeleteKey(KeyName As String) As Boolean
Parameters:
- KeyName:
DeleteValue
class method DeleteValue(KeyName: String; ValueName: String): Boolean
static Boolean DeleteValue(String KeyName, String ValueName)
static func DeleteValue(_ KeyName: String, _ ValueName: String) -> Boolean
static Boolean DeleteValue(String KeyName, String ValueName)
Shared Function DeleteValue(KeyName As String, ValueName As String) As Boolean
Parameters:
- KeyName:
- ValueName:
DynData
Registry key for dynamic root.
const DynData: String = 'HKEY_DYN_DATA'
const String DynData = "HKEY_DYN_DATA"
static let DynData: String = "HKEY_DYN_DATA"
static final String DynData = "HKEY_DYN_DATA"
Const DynData As String = "HKEY_DYN_DATA"
Equals virtual (declared in Object)
Default constructor.
method Equals(aOther: Object): Boolean
Boolean Equals(Object aOther)
func Equals(_ aOther: Object) -> Boolean
Boolean Equals(Object aOther)
Function Equals(aOther As Object) As Boolean
Parameters:
- aOther: the reference to compare this with.
Finalize protected virtual (declared in Object)
method Finalize
void Finalize()
func Finalize()
void Finalize()
Sub Finalize()
GetHashCode virtual (declared in Object)
Returns a hashcode for this object. Overriden implementations should make sure that the number returned here is constant given the same object.
method GetHashCode: Int32
Int32 GetHashCode()
func GetHashCode() -> Int32
Int32 GetHashCode()
Function GetHashCode() As Int32
GetSubKeyNames
Get the names of sub keys.
class method GetSubKeyNames(KeyName: String): nullable ImmutableList<String>
static ImmutableList<String>? GetSubKeyNames(String KeyName)
static func GetSubKeyNames(_ KeyName: String) -> ImmutableList<String>?
static ImmutableList<String> GetSubKeyNames(String KeyName)
Shared Function GetSubKeyNames(KeyName As String) As ImmutableList<String>?
Parameters:
- KeyName:
GetType (declared in Object)
Returns the actual type of this class
method GetType: Type
Type GetType()
func GetType() -> Type
Type GetType()
Function GetType() As Type
GetValue
Gets a value from the registry.
class method GetValue(KeyName: String; ValueName: String; defaultValue: Object): Object
static Object GetValue(String KeyName, String ValueName, Object defaultValue)
static func GetValue(_ KeyName: String, _ ValueName: String, _ defaultValue: Object) -> Object
static Object GetValue(String KeyName, String ValueName, Object defaultValue)
Shared Function GetValue(KeyName As String, ValueName As String, defaultValue As Object) As Object
Parameters:
- KeyName:
- ValueName:
- defaultValue:
GetValue32
Gets a value from the 32bits registry.
class method GetValue32(KeyName: String; ValueName: String; defaultValue: Object): Object
static Object GetValue32(String KeyName, String ValueName, Object defaultValue)
static func GetValue32(_ KeyName: String, _ ValueName: String, _ defaultValue: Object) -> Object
static Object GetValue32(String KeyName, String ValueName, Object defaultValue)
Shared Function GetValue32(KeyName As String, ValueName As String, defaultValue As Object) As Object
Parameters:
- KeyName:
- ValueName:
- defaultValue:
GetValue64
Gets a value from the 32 bits registry.
class method GetValue64(KeyName: String; ValueName: String; defaultValue: Object): Object
static Object GetValue64(String KeyName, String ValueName, Object defaultValue)
static func GetValue64(_ KeyName: String, _ ValueName: String, _ defaultValue: Object) -> Object
static Object GetValue64(String KeyName, String ValueName, Object defaultValue)
Shared Function GetValue64(KeyName As String, ValueName As String, defaultValue As Object) As Object
Parameters:
- KeyName:
- ValueName:
- defaultValue:
GetValueWithFlags
Get a value with the given view flags.
class method GetValueWithFlags(KeyName: String; ValueName: String; defaultValue: Object; ViewFlags: DWORD): Object
static Object GetValueWithFlags(String KeyName, String ValueName, Object defaultValue, DWORD ViewFlags)
static func GetValueWithFlags(_ KeyName: String, _ ValueName: String, _ defaultValue: Object, _ ViewFlags: DWORD) -> Object
static Object GetValueWithFlags(String KeyName, String ValueName, Object defaultValue, DWORD ViewFlags)
Shared Function GetValueWithFlags(KeyName As String, ValueName As String, defaultValue As Object, ViewFlags As DWORD) As Object
Parameters:
- KeyName:
- ValueName:
- defaultValue:
- ViewFlags:
KeyExists
class method KeyExists(KeyName: String): Boolean
static Boolean KeyExists(String KeyName)
static func KeyExists(_ KeyName: String) -> Boolean
static Boolean KeyExists(String KeyName)
Shared Function KeyExists(KeyName As String) As Boolean
Parameters:
- KeyName:
LocalMachine
Gets the registry hive for local mahine.
const LocalMachine: String = 'HKEY_LOCAL_MACHINE'
const String LocalMachine = "HKEY_LOCAL_MACHINE"
static let LocalMachine: String = "HKEY_LOCAL_MACHINE"
static final String LocalMachine = "HKEY_LOCAL_MACHINE"
Const LocalMachine As String = "HKEY_LOCAL_MACHINE"
PerformanceData
Gets the registry hive for performance data.
const PerformanceData: String = 'HKEY_PERFORMANCE_DATA'
const String PerformanceData = "HKEY_PERFORMANCE_DATA"
static let PerformanceData: String = "HKEY_PERFORMANCE_DATA"
static final String PerformanceData = "HKEY_PERFORMANCE_DATA"
Const PerformanceData As String = "HKEY_PERFORMANCE_DATA"
ReferenceEquals (declared in Object)
Compares two references for equivalence (even if they have an equals operator)
class method ReferenceEquals(a: Object; b: Object): Boolean
static Boolean ReferenceEquals(Object a, Object b)
static func ReferenceEquals(_ a: Object, _ b: Object) -> Boolean
static Boolean ReferenceEquals(Object a, Object b)
Shared Function ReferenceEquals(a As Object, b As Object) As Boolean
Parameters:
- a: left value
- b: right value
class method SetValue(KeyName: String; ValueName: String; Value: Object)
static void SetValue(String KeyName, String ValueName, Object Value)
static func SetValue(_ KeyName: String, _ ValueName: String, _ Value: Object)
static void SetValue(String KeyName, String ValueName, Object Value)
Shared Sub SetValue(KeyName As String, ValueName As String, Value As Object)
Parameters:
- KeyName:
- ValueName:
- Value:
SetValue (String, String, Object, RegistryValueKind)
class method SetValue(KeyName: String; ValueName: String; Value: Object; ValueKind: RegistryValueKind)
static void SetValue(String KeyName, String ValueName, Object Value, RegistryValueKind ValueKind)
static func SetValue(_ KeyName: String, _ ValueName: String, _ Value: Object, _ ValueKind: RegistryValueKind)
static void SetValue(String KeyName, String ValueName, Object Value, RegistryValueKind ValueKind)
Shared Sub SetValue(KeyName As String, ValueName As String, Value As Object, ValueKind As RegistryValueKind)
Parameters:
- KeyName:
- ValueName:
- Value:
- ValueKind:
ToString virtual (declared in Object)
Gets the string representation of this method.
method ToString: String
String ToString()
func ToString() -> String
String ToString()
Function ToString() As String
Users
Gets the registry hive for USERS.
const Users: String = 'HKEY_USERS'
const String Users = "HKEY_USERS"
static let Users: String = "HKEY_USERS"
static final String Users = "HKEY_USERS"
Const Users As String = "HKEY_USERS"
ClassesRoot
Registry key for classes root.
const ClassesRoot: String = 'HKEY_CLASSES_ROOT'
const String ClassesRoot = "HKEY_CLASSES_ROOT"
static let ClassesRoot: String = "HKEY_CLASSES_ROOT"
static final String ClassesRoot = "HKEY_CLASSES_ROOT"
Const ClassesRoot As String = "HKEY_CLASSES_ROOT"
CurrentConfig
Registry key for current config.
const CurrentConfig: String = 'HKEY_CURRENT_CONFIG'
const String CurrentConfig = "HKEY_CURRENT_CONFIG"
static let CurrentConfig: String = "HKEY_CURRENT_CONFIG"
static final String CurrentConfig = "HKEY_CURRENT_CONFIG"
Const CurrentConfig As String = "HKEY_CURRENT_CONFIG"
CurrentUser
Registry key for current user.
const CurrentUser: String = 'HKEY_CURRENT_USER'
const String CurrentUser = "HKEY_CURRENT_USER"
static let CurrentUser: String = "HKEY_CURRENT_USER"
static final String CurrentUser = "HKEY_CURRENT_USER"
Const CurrentUser As String = "HKEY_CURRENT_USER"
DynData
Registry key for dynamic root.
const DynData: String = 'HKEY_DYN_DATA'
const String DynData = "HKEY_DYN_DATA"
static let DynData: String = "HKEY_DYN_DATA"
static final String DynData = "HKEY_DYN_DATA"
Const DynData As String = "HKEY_DYN_DATA"
LocalMachine
Gets the registry hive for local mahine.
const LocalMachine: String = 'HKEY_LOCAL_MACHINE'
const String LocalMachine = "HKEY_LOCAL_MACHINE"
static let LocalMachine: String = "HKEY_LOCAL_MACHINE"
static final String LocalMachine = "HKEY_LOCAL_MACHINE"
Const LocalMachine As String = "HKEY_LOCAL_MACHINE"
PerformanceData
Gets the registry hive for performance data.
const PerformanceData: String = 'HKEY_PERFORMANCE_DATA'
const String PerformanceData = "HKEY_PERFORMANCE_DATA"
static let PerformanceData: String = "HKEY_PERFORMANCE_DATA"
static final String PerformanceData = "HKEY_PERFORMANCE_DATA"
Const PerformanceData As String = "HKEY_PERFORMANCE_DATA"
Users
Gets the registry hive for USERS.
const Users: String = 'HKEY_USERS'
const String Users = "HKEY_USERS"
static let Users: String = "HKEY_USERS"
static final String Users = "HKEY_USERS"
Const Users As String = "HKEY_USERS"
DeleteExistedKey
class method DeleteExistedKey(KeyName: String): Boolean
static Boolean DeleteExistedKey(String KeyName)
static func DeleteExistedKey(_ KeyName: String) -> Boolean
static Boolean DeleteExistedKey(String KeyName)
Shared Function DeleteExistedKey(KeyName As String) As Boolean
Parameters:
- KeyName:
DeleteKey
class method DeleteKey(KeyName: String): Boolean
static Boolean DeleteKey(String KeyName)
static func DeleteKey(_ KeyName: String) -> Boolean
static Boolean DeleteKey(String KeyName)
Shared Function DeleteKey(KeyName As String) As Boolean
Parameters:
- KeyName:
DeleteValue
class method DeleteValue(KeyName: String; ValueName: String): Boolean
static Boolean DeleteValue(String KeyName, String ValueName)
static func DeleteValue(_ KeyName: String, _ ValueName: String) -> Boolean
static Boolean DeleteValue(String KeyName, String ValueName)
Shared Function DeleteValue(KeyName As String, ValueName As String) As Boolean
Parameters:
- KeyName:
- ValueName:
GetSubKeyNames
Get the names of sub keys.
class method GetSubKeyNames(KeyName: String): nullable ImmutableList<String>
static ImmutableList<String>? GetSubKeyNames(String KeyName)
static func GetSubKeyNames(_ KeyName: String) -> ImmutableList<String>?
static ImmutableList<String> GetSubKeyNames(String KeyName)
Shared Function GetSubKeyNames(KeyName As String) As ImmutableList<String>?
Parameters:
- KeyName:
GetValue
Gets a value from the registry.
class method GetValue(KeyName: String; ValueName: String; defaultValue: Object): Object
static Object GetValue(String KeyName, String ValueName, Object defaultValue)
static func GetValue(_ KeyName: String, _ ValueName: String, _ defaultValue: Object) -> Object
static Object GetValue(String KeyName, String ValueName, Object defaultValue)
Shared Function GetValue(KeyName As String, ValueName As String, defaultValue As Object) As Object
Parameters:
- KeyName:
- ValueName:
- defaultValue:
GetValue32
Gets a value from the 32bits registry.
class method GetValue32(KeyName: String; ValueName: String; defaultValue: Object): Object
static Object GetValue32(String KeyName, String ValueName, Object defaultValue)
static func GetValue32(_ KeyName: String, _ ValueName: String, _ defaultValue: Object) -> Object
static Object GetValue32(String KeyName, String ValueName, Object defaultValue)
Shared Function GetValue32(KeyName As String, ValueName As String, defaultValue As Object) As Object
Parameters:
- KeyName:
- ValueName:
- defaultValue:
GetValue64
Gets a value from the 32 bits registry.
class method GetValue64(KeyName: String; ValueName: String; defaultValue: Object): Object
static Object GetValue64(String KeyName, String ValueName, Object defaultValue)
static func GetValue64(_ KeyName: String, _ ValueName: String, _ defaultValue: Object) -> Object
static Object GetValue64(String KeyName, String ValueName, Object defaultValue)
Shared Function GetValue64(KeyName As String, ValueName As String, defaultValue As Object) As Object
Parameters:
- KeyName:
- ValueName:
- defaultValue:
GetValueWithFlags
Get a value with the given view flags.
class method GetValueWithFlags(KeyName: String; ValueName: String; defaultValue: Object; ViewFlags: DWORD): Object
static Object GetValueWithFlags(String KeyName, String ValueName, Object defaultValue, DWORD ViewFlags)
static func GetValueWithFlags(_ KeyName: String, _ ValueName: String, _ defaultValue: Object, _ ViewFlags: DWORD) -> Object
static Object GetValueWithFlags(String KeyName, String ValueName, Object defaultValue, DWORD ViewFlags)
Shared Function GetValueWithFlags(KeyName As String, ValueName As String, defaultValue As Object, ViewFlags As DWORD) As Object
Parameters:
- KeyName:
- ValueName:
- defaultValue:
- ViewFlags:
KeyExists
class method KeyExists(KeyName: String): Boolean
static Boolean KeyExists(String KeyName)
static func KeyExists(_ KeyName: String) -> Boolean
static Boolean KeyExists(String KeyName)
Shared Function KeyExists(KeyName As String) As Boolean
Parameters:
- KeyName:
ReferenceEquals (declared in Object)
Compares two references for equivalence (even if they have an equals operator)
class method ReferenceEquals(a: Object; b: Object): Boolean
static Boolean ReferenceEquals(Object a, Object b)
static func ReferenceEquals(_ a: Object, _ b: Object) -> Boolean
static Boolean ReferenceEquals(Object a, Object b)
Shared Function ReferenceEquals(a As Object, b As Object) As Boolean
Parameters:
- a: left value
- b: right value
class method SetValue(KeyName: String; ValueName: String; Value: Object)
static void SetValue(String KeyName, String ValueName, Object Value)
static func SetValue(_ KeyName: String, _ ValueName: String, _ Value: Object)
static void SetValue(String KeyName, String ValueName, Object Value)
Shared Sub SetValue(KeyName As String, ValueName As String, Value As Object)
Parameters:
- KeyName:
- ValueName:
- Value:
SetValue (String, String, Object, RegistryValueKind)
class method SetValue(KeyName: String; ValueName: String; Value: Object; ValueKind: RegistryValueKind)
static void SetValue(String KeyName, String ValueName, Object Value, RegistryValueKind ValueKind)
static func SetValue(_ KeyName: String, _ ValueName: String, _ Value: Object, _ ValueKind: RegistryValueKind)
static void SetValue(String KeyName, String ValueName, Object Value, RegistryValueKind ValueKind)
Shared Sub SetValue(KeyName As String, ValueName As String, Value As Object, ValueKind As RegistryValueKind)
Parameters:
- KeyName:
- ValueName:
- Value:
- ValueKind:
constructor protected
constructor
Registry()
init()
Registry()
Sub New()
Equals virtual (declared in Object)
Default constructor.
method Equals(aOther: Object): Boolean
Boolean Equals(Object aOther)
func Equals(_ aOther: Object) -> Boolean
Boolean Equals(Object aOther)
Function Equals(aOther As Object) As Boolean
Parameters:
- aOther: the reference to compare this with.
Finalize protected virtual (declared in Object)
method Finalize
void Finalize()
func Finalize()
void Finalize()
Sub Finalize()
GetHashCode virtual (declared in Object)
Returns a hashcode for this object. Overriden implementations should make sure that the number returned here is constant given the same object.
method GetHashCode: Int32
Int32 GetHashCode()
func GetHashCode() -> Int32
Int32 GetHashCode()
Function GetHashCode() As Int32
GetType (declared in Object)
Returns the actual type of this class
method GetType: Type
Type GetType()
func GetType() -> Type
Type GetType()
Function GetType() As Type
ToString virtual (declared in Object)
Gets the string representation of this method.
method ToString: String
String ToString()
func ToString() -> String
String ToString()
Function ToString() As String