TransactedRegistryKey Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Registry encapsulation. To get an instance of a TransactedRegistryKey use the Registry class's static members then call OpenSubKey.
@see Registry @security(checkDllCalls=off) @security(checkClassLinking=on)
public ref class TransactedRegistryKey sealed : MarshalByRefObject, IDisposable
[System.Runtime.InteropServices.ComVisible(true)]
public sealed class TransactedRegistryKey : MarshalByRefObject, IDisposable
[<System.Runtime.InteropServices.ComVisible(true)>]
type TransactedRegistryKey = class
inherit MarshalByRefObject
interface IDisposable
Public NotInheritable Class TransactedRegistryKey
Inherits MarshalByRefObject
Implements IDisposable
- Inheritance
-
TransactedRegistryKey
- Attributes
- Implements
Properties
Name |
Retrieves the name of the key. |
SubKeyCount |
Retrieves the count of subkeys. Utilizes Transaction.Current for its transaction. |
ValueCount |
Retrieves the count of values. Utilizes Transaction.Current for its transaction. |
Methods
Close() |
TransactedRegistryKey.Close Closes this key, flushes it to disk if the contents have been modified. Utilizes Transaction.Current for its transaction. |
CreateSubKey(String) |
Creates a new subkey, or opens an existing one. Utilizes Transaction.Current for its transaction. |
CreateSubKey(String, RegistryKeyPermissionCheck) |
Creates a new subkey, or opens an existing one. Utilizes Transaction.Current for its transaction. |
CreateSubKey(String, RegistryKeyPermissionCheck, TransactedRegistrySecurity) |
Creates a new subkey, or opens an existing one. Utilizes Transaction.Current for its transaction. |
DeleteSubKey(String) |
Deletes the specified subkey. Will throw an exception if the subkey has subkeys. To delete a tree of subkeys use, DeleteSubKeyTree. Utilizes Transaction.Current for its transaction. |
DeleteSubKey(String, Boolean) |
Deletes the specified subkey. Will throw an exception if the subkey has subkeys. To delete a tree of subkeys use, DeleteSubKeyTree. Utilizes Transaction.Current for its transaction. |
DeleteSubKeyTree(String) |
Recursively deletes a subkey and any child subkeys. Utilizes Transaction.Current for its transaction. |
DeleteValue(String) |
Deletes the specified value from this key. Utilizes Transaction.Current for its transaction. |
DeleteValue(String, Boolean) |
Deletes the specified value from this key. Utilizes Transaction.Current for its transaction. |
Dispose() |
TransactedRegistryKey.Dispose Disposes this key. Utilizes Transaction.Current for its transaction. |
Flush() |
TransactedRegistryKey.Flush Flushes this key. Utilizes Transaction.Current for its transaction. |
GetAccessControl() |
Returns the access control security for the current registry key. Utilizes Transaction.Current for its transaction. |
GetAccessControl(AccessControlSections) |
Returns the access control security for the current registry key. Utilizes Transaction.Current for its transaction. |
GetSubKeyNames() |
Retrieves an array of strings containing all the subkey names. Utilizes Transaction.Current for its transaction. |
GetValue(String) |
Retrieves the specified value. null is returned if the value doesn't exist. Utilizes Transaction.Current for its transaction. Note that name can be null or "", at which point the unnamed or default value of this Registry key is returned, if any. |
GetValue(String, Object) |
Retrieves the specified value. null is returned if the value doesn't exist. Utilizes Transaction.Current for its transaction. Note that name can be null or "", at which point the unnamed or default value of this Registry key is returned, if any. |
GetValue(String, Object, RegistryValueOptions) |
Retrieves the specified value. null is returned if the value doesn't exist. Utilizes Transaction.Current for its transaction. Note that name can be null or "", at which point the unnamed or default value of this Registry key is returned, if any. |
GetValueKind(String) |
Retrieves the registry data type of the value associated with the specified name. Utilizes Transaction.Current for its transaction. |
GetValueNames() |
Retrieves an array of strings containing all the value names. Utilizes Transaction.Current for its transaction. |
OpenSubKey(String) |
Retrieves a subkey for readonly access. Utilizes Transaction.Current for its transaction. |
OpenSubKey(String, Boolean) |
Retrieves a subkey. If readonly is true, then the subkey is opened with read-only access. Utilizes Transaction.Current for its transaction. |
OpenSubKey(String, RegistryKeyPermissionCheck) |
Retrieves a subkey. Utilizes Transaction.Current for its transaction. |
OpenSubKey(String, RegistryKeyPermissionCheck, RegistryRights) |
Retrieves a subkey. Utilizes Transaction.Current for its transaction. |
SetAccessControl(TransactedRegistrySecurity) |
Applies Windows access control security to an existing registry key. Utilizes Transaction.Current for its transaction. |
SetValue(String, Object) |
Sets the specified value. Utilizes Transaction.Current for its transaction. |
SetValue(String, Object, RegistryValueKind) |
Sets the specified value. Utilizes Transaction.Current for its transaction. |
ToString() |
Retrieves a string representation of this key. |