Remove all data for the given DriverID from the registry.

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

Syntax

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

Parameters

DriverID
Type: System..::..String
ProgID of the device to unregister

Implements

IProfile..::..Unregister(String)

Remarks

This deletes the entire device profile tree, including the DriverID root key.

Unregister must only be called if the driver has already been registered. If you are not sure use the IsRegistered function to check the status and only unregister if the driver is registered.

Exceptions

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

See Also