TransactedRegistryKey.DeleteSubKey Method
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.
Overloads
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. |
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.
public:
void DeleteSubKey(System::String ^ subkey);
public:
void DeleteSubKey(Platform::String ^ subkey);
void DeleteSubKey(std::wstring const & subkey);
public void DeleteSubKey (string subkey);
member this.DeleteSubKey : string -> unit
Public Sub DeleteSubKey (subkey As String)
Parameters
- subkey
- String
Applies to
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.
public:
void DeleteSubKey(System::String ^ subkey, bool throwOnMissingSubKey);
public:
void DeleteSubKey(Platform::String ^ subkey, bool throwOnMissingSubKey);
void DeleteSubKey(std::wstring const & subkey, bool throwOnMissingSubKey);
public void DeleteSubKey (string subkey, bool throwOnMissingSubKey);
member this.DeleteSubKey : string * bool -> unit
Public Sub DeleteSubKey (subkey As String, throwOnMissingSubKey As Boolean)
Parameters
- subkey
- String
- throwOnMissingSubKey
- Boolean