BluetoothError Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Specifies common Bluetooth error cases.
public enum class BluetoothError
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
enum class BluetoothError
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public enum BluetoothError
var value = Windows.Devices.Bluetooth.BluetoothError.success
Public Enum BluetoothError
- Inheritance
-
BluetoothError
- Attributes
Windows requirements
Device family |
Windows 10 (introduced in 10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v1.0)
|
App capabilities |
bluetooth
|
Fields
Name | Value | Description |
---|---|---|
Success | 0 | The operation was successfully completed or serviced. |
RadioNotAvailable | 1 | The Bluetooth radio was not available. This error occurs when the Bluetooth radio has been turned off. |
ResourceInUse | 2 | The operation cannot be serviced because the necessary resources are currently in use. |
DeviceNotConnected | 3 | The operation cannot be completed because the remote device is not connected. |
OtherError | 4 | An unexpected error has occurred. |
DisabledByPolicy | 5 | The operation is disabled by policy. |
NotSupported | 6 | The operation is not supported on the current Bluetooth radio hardware. |
DisabledByUser | 7 | The operation is disabled by the user. |
ConsentRequired | 8 | The operation requires consent. |
TransportNotSupported | 9 | The transport is not supported. |
Remarks
Version history
Windows version | SDK version | Value added |
---|---|---|
1511 | 10586 | DisabledByUser |
1607 | 14393 | ConsentRequired |
1703 | 15063 | TransportNotSupported |