ProfileUnregister Method

Remove all data for the given DriverID from the registry.

Definition

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

Parameters

DriverID  String
ProgID of the device to unregister

Implements

IProfileUnregister(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

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

See Also