Delete the value from the registry. Name may be an empty string for the unnamed value. Value will be deleted from the subkey supplied.

Namespace: ASCOM.Utilities
Assembly: ASCOM.Utilities (in ASCOM.Utilities.dll) Version: 6.0.0.0 (6.1.1.2619)

Syntax

C#
public void DeleteValue(
	string DriverID,
	string Name,
	string SubKey
)
Visual Basic
Public Sub DeleteValue ( _
	DriverID As String, _
	Name As String, _
	SubKey As String _
)
Visual C++
public:
virtual void DeleteValue(
	String^ DriverID, 
	String^ Name, 
	String^ SubKey
) sealed

Parameters

DriverID
Type: System..::..String
ProgID of the device to read from
Name
Type: System..::..String
Name of the variable whose value is retrieved
SubKey
Type: System..::..String
Subkey from the profile root in which to write the value

Implements

IProfile..::..DeleteValue(String, String, String)

Remarks

Specify "" to delete the unnamed value which is also known as the "default" value for a registry key.

Exceptions

ExceptionCondition
ASCOM.Utilities.Exceptions..::..InvalidValueExceptionThrown if DriverID is an empty string.
ASCOM.Utilities.Exceptions..::..DriverNotRegisteredExceptionThrown if the driver is not registered,

See Also