This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!
RegistryKey Methods
The methods of the RegistryKey class are listed below. For a complete list of RegistryKey class members, see the RegistryKey Members topic.
Public:
Close |
Closes this key and flushes it to disk if the contents have been modified. |
CreateSubKey |
Creates a new subkey or opens an existing subkey. The string subKey is not case sensitive. |
DeleteSubKey |
Deletes the specified subkey. To delete child subkeys, use DeleteSubKeyTree. The string subKey is not case sensitive. |
DeleteSubKeyTree |
Recursively deletes a subkey and any child subkeys. The string subKey is not case sensitive. |
DeleteValue |
Deletes the specified value from this key. The string subKey is not case sensitive. |
Equals (inherited from Object) |
Determines whether the specified Object is the same instance as the current Object. Subclasses are expected to override this method to support value equality (not reference equality). |
GetHashCode (inherited from Object) |
Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table. |
GetSubKeyNames |
Retrieves an array of strings containing all the subkey names. |
GetType (inherited from Object) |
Gets the Type of the Object. |
GetValue |
Overloaded. Retrieves the specified value. |
GetValueNames |
Retrieves an array of strings containing all the value names. |
OpenRemoteBaseKey |
Opens a new RegistryKey that represents the requested key on a foreign machine. |
OpenSubKey |
Overloaded. Retrieves a subkey. |
SetValue |
Sets the specified value. The string subKey is not case sensitive. |
ToString |
Retrieves a string representation of this key. |
Protected:
See Also
RegistryKey Class | Microsoft.Win32 Namespace