Enables or disables services for a Bluetooth device.
When called on Windows CE, the device will require a soft-reset to enabled the settings.
Note:
The system maintains a mapping of service guids to supported drivers for Bluetooth-enabled devices. Enabling a service installs the corresponding device driver. Disabling a service removes the corresponding device driver. If a non-supported service is enabled, a driver will not be installed.
This overload is silent on error; the other overload raises an exception if required (SetServiceState(Guid, Boolean, Boolean)).
| Exception | Condition |
|---|---|
| PlatformNotSupportedException |
Thrown if this method is called on Windows CE platforms. |