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"
Dim 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"
Dim 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"
Dim CurrentUser As String = "HKEY_CURRENT_USER"
DeleteExistedKey
Parameters:
- KeyName:
DeleteKey
Parameters:
- KeyName:
DeleteValue
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"
Dim DynData As String = "HKEY_DYN_DATA"
Equals virtual (declared in Object)
Default constructor.
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.
Parameters:
- KeyName:
- ValueName:
- defaultValue:
GetValue32
Gets a value from the 32bits registry.
Parameters:
- KeyName:
- ValueName:
- defaultValue:
GetValue64
Gets a value from the 32 bits registry.
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
Parameters:
- KeyName:
- ValueName:
- defaultValue:
- ViewFlags:
KeyExists
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"
Dim 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"
Dim PerformanceData As String = "HKEY_PERFORMANCE_DATA"
ReferenceEquals (declared in Object)
Compares two references for equivalence (even if they have an equals operator)
Parameters:
- a: left value
- b: right value
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.
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"
Dim 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"
Dim 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"
Dim 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"
Dim 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"
Dim 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"
Dim PerformanceData As String = "HKEY_PERFORMANCE_DATA"
Users
Gets the registry hive for USERS.
DeleteExistedKey
Parameters:
- KeyName:
DeleteKey
Parameters:
- KeyName:
DeleteValue
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.
Parameters:
- KeyName:
- ValueName:
- defaultValue:
GetValue32
Gets a value from the 32bits registry.
Parameters:
- KeyName:
- ValueName:
- defaultValue:
GetValue64
Gets a value from the 32 bits registry.
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
Parameters:
- KeyName:
- ValueName:
- defaultValue:
- ViewFlags:
KeyExists
Parameters:
- KeyName:
ReferenceEquals (declared in Object)
Compares two references for equivalence (even if they have an equals operator)
Parameters:
- a: left value
- b: right value
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.
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.