TransactedRegistryKey.DeleteValue Method (String, Boolean)

Deletes the specified value from this key. This method is introduced in Windows PowerShell 2.0.

Namespace: Microsoft.PowerShell.Commands.Internal
Assembly: System.Management.Automation (in System.Management.Automation.dll)

Dim instance As TransactedRegistryKey
Dim name As String
Dim throwOnMissingValue As Boolean

instance.DeleteValue(name, throwOnMissingValue)

public void DeleteValue (
	string name,
	bool throwOnMissingValue
public void DeleteValue (
	String name, 
	boolean throwOnMissingValue
public function DeleteValue (
	name : String, 
	throwOnMissingValue : boolean



The name of the value to delete.


Specify true whether an ArgumentException should be thrown if the specified value does not exist. If false is specified, a missing value does not throw an exception.

This topic is included in this SDK for completeness only.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


Target Platforms