Understanding IRegistryKey: The Key Concepts You Need to Know

Understanding IRegistryKey: The Key Concepts You Need to Know

Jason Lv8

Understanding IRegistryKey: The Key Concepts You Need to Know

Table of Contents

Disclaimer: This post includes affiliate links

If you click on a link and make a purchase, I may receive a commission at no extra cost to you.

IRegistryKey

This interface is used to navigate the keys added in a project, modifies key properties and adds or deletes values.

Declaration

IRegistryKey : IDispatch

https://techidaily.com

Properties

String FullPath - Gets the full path of the registry key.

String Name - Gets or sets the registry key name.

String RootName - Gets the registry key root name.

IRegistryKey ParentKey - Gets the parent key of the current registry key.

Array<**IRegistryKey **> - Gets all child keys of the registry key.

Array<**IRegistryValue **>Values - Gets all values from registry key.

Bool CreateIfAbsentAtInstall - Gets or sets the flag “Create if(absent) at install”

Bool DeleteIfPresentAtUninstall - Gets or sets the flag “Delete (if present) at uninstall”.

https://techidaily.com

Methods

CreateKey(String name) returns IRegistryKey
This method creates a new key with the specified name.

$b.RegistryComponent.CurrentUserOrLocalMachine.FullPath
$b.RegistryComponent.CurrentUserOrLocalMachine.CreateKey(“test”)

Copy

**CreateValueStringPrepend(String name, String data = “”)**returns IRegistryValue
This method creates a new value with the specified name. The data can be specified or the default value is added. The data will be prepended.

CreateValueStringAppend(String path) returns IRegistryValue
This method creates a new value with the specified name. The data can be specified or the default value is added. The data will be appended.

CreateValueStringReplace(String path, Bool is64Bit) returns IRegistryValue
This method creates a new value with the specified name. The data can be specified or the default value is added. The data will be replaced.

**CreateValueExpandableString(String path, String data = “”)**returns IRegistryValue
This method creates a new value at the specified path. The data can be specified or the default value is added.

CreateValueInteger(String path, String data) returnsIRegistryValue
This method creates a new value at the specified path. The data has to be specified, there is no default value.

CreateValueInteger(String path, String data) returnsIRegistryValue
This method creates a new value at the specified path. The data has to be specified, there is no default value.

**CreateValueBinary(String path, String data = “”)**returns IRegistryValue
This method creates a new value at the specified path. The data can be specified or the default value is added.

DeleteValue(IRegistryValue valueToDelete)
This method deletes the specified registry value.

DeleteKey(IRegistryKey keyToDelete)
This method deletes the specified registry key.

**DeleteAllValues()**This method deletes all values.

DeleteAllKeys()
This method deletes all keys.

R key

https://techidaily.com

See also

IRegistryComponent

IRegistryValue

Did you find this page useful?

Please give it a rating:

Thanks!

Report a problem on this page

Information is incorrect or missing

Information is unclear or confusing

Something else

Can you tell us what’s wrong?

Send message

Also read:

  • Title: Understanding IRegistryKey: The Key Concepts You Need to Know
  • Author: Jason
  • Created at : 2024-10-08 16:55:07
  • Updated at : 2024-10-11 01:05:06
  • Link: https://fox-useful.techidaily.com/understanding-iregistrykey-the-key-concepts-you-need-to-know/
  • License: This work is licensed under CC BY-NC-SA 4.0.
On this page
Understanding IRegistryKey: The Key Concepts You Need to Know