RegistryKey Methods

 

Namespace:   Microsoft.Win32
Assembly:  mscorlib (in mscorlib.dll)

NameDescription
System_CAPS_pubmethodClose()

Closes the key and flushes it to disk if its contents have been modified.

System_CAPS_pubmethodCreateObjRef(Type)

Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.(Inherited from MarshalByRefObject.)

System_CAPS_pubmethodCreateSubKey(String)

Creates a new subkey or opens an existing subkey for write access.

System_CAPS_pubmethodCreateSubKey(String, Boolean)

Creates a new subkey or opens an existing subkey with the specified access.

Available starting in .NET Framework 4.6

System_CAPS_pubmethodCreateSubKey(String, Boolean, RegistryOptions)

Creates a new subkey or opens an existing subkey with the specified access.

Available starting in .NET Framework 4.6

System_CAPS_pubmethodCreateSubKey(String, RegistryKeyPermissionCheck)

Creates a new subkey or opens an existing subkey for write access, using the specified permission check option.

System_CAPS_pubmethodCreateSubKey(String, RegistryKeyPermissionCheck, RegistryOptions)

Creates a subkey or opens a subkey for write access, using the specified permission check and registry options.

System_CAPS_pubmethodCreateSubKey(String, RegistryKeyPermissionCheck, RegistryOptions, RegistrySecurity)

Creates a subkey or opens a subkey for write access, using the specified permission check option, registry option, and registry security.

System_CAPS_pubmethodCreateSubKey(String, RegistryKeyPermissionCheck, RegistrySecurity)

Creates a new subkey or opens an existing subkey for write access, using the specified permission check option and registry security.

System_CAPS_pubmethodDeleteSubKey(String)

Deletes the specified subkey.

System_CAPS_pubmethodDeleteSubKey(String, Boolean)

Deletes the specified subkey, and specifies whether an exception is raised if the subkey is not found.

System_CAPS_pubmethodDeleteSubKeyTree(String)

Deletes a subkey and any child subkeys recursively.

System_CAPS_pubmethodDeleteSubKeyTree(String, Boolean)

Deletes the specified subkey and any child subkeys recursively, and specifies whether an exception is raised if the subkey is not found.

System_CAPS_pubmethodDeleteValue(String)

Deletes the specified value from this key.

System_CAPS_pubmethodDeleteValue(String, Boolean)

Deletes the specified value from this key, and specifies whether an exception is raised if the value is not found.

System_CAPS_pubmethodDispose()

Releases all resources used by the current instance of the RegistryKey class.

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_pubmethodFlush()

Writes all the attributes of the specified open registry key into the registry.

System_CAPS_pubmethodSystem_CAPS_staticFromHandle(SafeRegistryHandle)

Creates a registry key from a specified handle.

System_CAPS_pubmethodSystem_CAPS_staticFromHandle(SafeRegistryHandle, RegistryView)

Creates a registry key from a specified handle and registry view setting.

System_CAPS_pubmethodGetAccessControl()

Returns the access control security for the current registry key.

System_CAPS_pubmethodGetAccessControl(AccessControlSections)

Returns the specified sections of the access control security for the current registry key.

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetLifetimeService()

Retrieves the current lifetime service object that controls the lifetime policy for this instance.(Inherited from MarshalByRefObject.)

System_CAPS_pubmethodGetSubKeyNames()

Retrieves an array of strings that contains all the subkey names.

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodGetValue(String)

Retrieves the value associated with the specified name. Returns null if the name/value pair does not exist in the registry.

System_CAPS_pubmethodGetValue(String, Object)

Retrieves the value associated with the specified name. If the name is not found, returns the default value that you provide.

System_CAPS_pubmethodGetValue(String, Object, RegistryValueOptions)

Retrieves the value associated with the specified name and retrieval options. If the name is not found, returns the default value that you provide.

System_CAPS_pubmethodGetValueKind(String)

Retrieves the registry data type of the value associated with the specified name.

System_CAPS_pubmethodGetValueNames()

Retrieves an array of strings that contains all the value names associated with this key.

System_CAPS_pubmethodInitializeLifetimeService()

Obtains a lifetime service object to control the lifetime policy for this instance.(Inherited from MarshalByRefObject.)

System_CAPS_pubmethodSystem_CAPS_staticOpenBaseKey(RegistryHive, RegistryView)

Opens a new RegistryKey that represents the requested key on the local machine with the specified view.

System_CAPS_pubmethodSystem_CAPS_staticOpenRemoteBaseKey(RegistryHive, String)

Opens a new RegistryKey that represents the requested key on a remote machine.

System_CAPS_pubmethodSystem_CAPS_staticOpenRemoteBaseKey(RegistryHive, String, RegistryView)

Opens a new registry key that represents the requested key on a remote machine with the specified view.

System_CAPS_pubmethodOpenSubKey(String)

Retrieves a subkey as read-only.

System_CAPS_pubmethodOpenSubKey(String, Boolean)

Retrieves a specified subkey, and specifies whether write access is to be applied to the key.

System_CAPS_pubmethodOpenSubKey(String, RegistryKeyPermissionCheck)

Retrieves the specified subkey for read or read/write access.

System_CAPS_pubmethodOpenSubKey(String, RegistryKeyPermissionCheck, RegistryRights)

Retrieves the specified subkey for read or read/write access, requesting the specified access rights.

System_CAPS_pubmethodOpenSubKey(String, RegistryRights)

Retrieves a subkey with the specified name and .

Available starting in .NET Framework 4.6

System_CAPS_pubmethodSetAccessControl(RegistrySecurity)

Applies Windows access control security to an existing registry key.

System_CAPS_pubmethodSetValue(String, Object)

Sets the specified name/value pair.

System_CAPS_pubmethodSetValue(String, Object, RegistryValueKind)

Sets the value of a name/value pair in the registry key, using the specified registry data type.

System_CAPS_pubmethodToString()

Retrieves a string representation of this key.(Overrides Object.ToString().)

Return to top
Show: