RegistryKey class
An individual node in the Windows Registry.
Registry data is structured in a tree format. Each node in the tree is called a key. Keys can contain data entries called values. Keys are somewhat analagous to a directory in a file system, with values being analagous to files.
Sometimes, the presence of a key is all the data that an application requires; other times, an application opens a key and uses the values associated with the key.
Constructors
- RegistryKey(int hkey)
-
Creates an instance of the RegistryKey with the specified handle.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- hkey → int
-
A handle to the current Registry key
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
subkeyNames
→ Iterable<
String> -
Enumerates the values for the specified open Registry key.
no setter
-
values
→ Iterable<
RegistryValue> -
Enumerates the values for the specified open Registry key.
no setter
Methods
-
close(
) → void - Closes a handle to the specified Registry key.
-
createKey(
String keyName) → RegistryKey - Creates the specified Registry key.
-
createValue(
RegistryValue value) → void - Sets the data and type of a specified value under a Registry key.
-
deleteKey(
String keyName, {bool recursive = false}) → void - Deletes a subkey and its values from the specified platform-specific view of the Registry.
-
deleteValue(
String valueName) → void - Removes a named value from the specified Registry key. Note that value names are not case sensitive.
-
getValue(
String valueName, {String path = '', bool expandPaths = false}) → RegistryValue? - Retrieves the type and data for the specified Registry value.
-
getValueAsInt(
String valueName) → int? - Retrieves the integer data for the specified Registry value.
-
getValueAsString(
String valueName, {bool expandPaths = false}) → String? - Retrieves the string data for the specified Registry value.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
queryInfo(
) → RegistryKeyInfo - Retrieves information about the specified Registry key.
-
renameSubkey(
String oldName, String newName) → void - Changes the name of the specified Registry key.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited