RegistryKey Members
.NET Framework 2.0
Represents a key-level node in the Windows registry. This class is a registry encapsulation.
The following tables list the members exposed by the RegistryKey type.
| Name | Description | |
|---|---|---|
| Name | Retrieves the name of the key. |
| SubKeyCount | Retrieves the count of subkeys of the current key. |
| ValueCount | Retrieves the count of values in the key. |
| Name | Description | |
|---|---|---|
| Close | Closes the key and flushes it to disk if its contents have been modified. |
| CreateObjRef | Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from MarshalByRefObject.) |
| CreateSubKey | Overloaded. Creates a new subkey or opens an existing subkey. |
| DeleteSubKey | Overloaded. Deletes the specified subkey. The string subkey is not case-sensitive. |
| DeleteSubKeyTree | Deletes a subkey and any child subkeys recursively. The string subkey is not case-sensitive. |
| DeleteValue | Overloaded. Deletes the specified value from this key. |
| Equals | Overloaded. Determines whether two Object instances are equal. (Inherited from Object.) |
| Flush | Writes all the attributes of the specified open registry key into the registry. |
| GetAccessControl | Overloaded. Returns the access control security for the current registry key. |
| GetHashCode | Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table. (Inherited from Object.) |
| GetLifetimeService | Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.) |
| GetSubKeyNames | Retrieves an array of strings that contains all the subkey names. |
| GetType | Gets the Type of the current instance. (Inherited from Object.) |
| GetValue | Overloaded. Retrieves the value associated with the specified name. |
| GetValueKind | Retrieves the registry data type of the value associated with the specified name. |
| GetValueNames | Retrieves an array of strings that contains all the value names associated with this key. |
| InitializeLifetimeService | Obtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.) |
| OpenRemoteBaseKey | Opens a new RegistryKey that represents the requested key on a remote machine. |
| OpenSubKey | Overloaded. Retrieves the specified subkey. |
| ReferenceEquals | Determines whether the specified Object instances are the same instance. (Inherited from Object.) |
| SetAccessControl | Applies Windows access control security to an existing registry key. |
| SetValue | Overloaded. Sets the value of a name/value pair in the registry key. Depending on the overload, the registry data type is determined from the type of data being stored or from a specified RegistryValueKind. |
| ToString | Overridden. Retrieves a string representation of this key. |