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: 6.0.0.0 (6.3.0.2839)
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