This documentation is archived and is not being maintained.

RegistryKey Methods

The RegistryKey type exposes the following members.

  NameDescription
Public method Supported by the .NET Compact Framework Close Closes the key and flushes it to disk if its contents have been modified.
Public method 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.)
Public method Supported by the .NET Compact Framework CreateSubKey Overloaded. Creates a new subkey or opens an existing subkey.
Public method Supported by the .NET Compact Framework DeleteSubKey Overloaded. Deletes the specified subkey. The string subkey is not case-sensitive.
Public method Supported by the .NET Compact Framework DeleteSubKeyTree Deletes a subkey and any child subkeys recursively. The string subkey is not case-sensitive.
Public method Supported by the .NET Compact Framework DeleteValue Overloaded. Deletes the specified value from this key.
Public method Supported by the .NET Compact Framework Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Supported by the .NET Compact Framework Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method Supported by the .NET Compact Framework Flush Writes all the attributes of the specified open registry key into the registry.
Public method GetAccessControl Overloaded. Returns the access control security for the current registry key.
Public method Supported by the .NET Compact Framework GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetLifetimeService Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Public method Supported by the .NET Compact Framework GetSubKeyNames Retrieves an array of strings that contains all the subkey names.
Public method Supported by the .NET Compact Framework GetType Gets the type of the current instance. (Inherited from Object.)
Public method Supported by the .NET Compact Framework GetValue Overloaded. Retrieves the value associated with the specified name.
Public method Supported by the .NET Compact Framework GetValueKind Retrieves the registry data type of the value associated with the specified name.
Public method Supported by the .NET Compact Framework GetValueNames Retrieves an array of strings that contains all the value names associated with this key.
Public method InitializeLifetimeService Obtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Protected method Supported by the .NET Compact Framework MemberwiseClone Overloaded.
Public method Static member OpenRemoteBaseKey Opens a new RegistryKey that represents the requested key on a remote machine.
Public method Supported by the .NET Compact Framework OpenSubKey Overloaded. Retrieves the specified subkey.
Public method SetAccessControl Applies Windows access control security to an existing registry key.
Public method Supported by the .NET Compact Framework 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.
Public method Supported by the .NET Compact Framework ToString Retrieves a string representation of this key. (Overrides Object.ToString().)
Top

  NameDescription
Explicit interface implemetation Private method Supported by the .NET Compact Framework IDisposable.Dispose Infrastructure. Performs a Close on the current key.
Top
Show: