Click or drag to resize

ProfileUnregister Method

Remove all data for the given DriverID from the registry.

Namespace:  ASCOM.Utilities
Assembly:  ASCOM.Utilities (in ASCOM.Utilities.dll) Version: 3c9121baba46811fe6e53a58a05935662261416d
Syntax
public void Unregister(
	string DriverID
)

Parameters

DriverID
Type: SystemString
ProgID of the device to unregister
Exceptions
ExceptionCondition
InvalidValueExceptionThrown if DriverID is an empty string.
DriverNotRegisteredExceptionThrown if the driver is not registered,
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.

See Also