ProfileDeleteValue(String, String, String) Method

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

Definition

Namespace: ASCOM.Utilities
Assembly: ASCOM.Utilities (in ASCOM.Utilities.dll) Version: 7.1.3+4851.c5da65c2b
C#
public void DeleteValue(
	string DriverID,
	string Name,
	string SubKey
)

Parameters

DriverID  String
ProgID of the device to read from
Name  String
Name of the variable whose value is retrieved
SubKey  String
Sub-key from the profile root in which to write the value

Implements

IProfileDeleteValue(String, String, String)

Remarks

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

Exceptions

InvalidValueExceptionThrown if DriverID is an empty string.
DriverNotRegisteredExceptionThrown if the driver is not registered,

See Also