ProfileUnregister Method |
Exception | Condition |
---|---|
InvalidValueException | Thrown if DriverID is an empty string. |
DriverNotRegisteredException | Thrown if the driver is not registered, |
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.