BluetoothError 列舉

定義

指定常見的藍牙錯誤案例。

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
繼承
BluetoothError
屬性

Windows 需求

裝置系列
Windows 10 (已於 10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v1.0 引進)
應用程式功能
bluetooth

欄位

ConsentRequired 8

作業需要同意。

DeviceNotConnected 3

無法完成作業,因為遠端裝置未連線。

DisabledByPolicy 5

此作業會由原則停用。

DisabledByUser 7

使用者已停用作業。

NotSupported 6

目前藍牙無線電硬體不支援此作業。

OtherError 4

已發生未預期的錯誤。

RadioNotAvailable 1

藍牙無線電無法使用。 當藍牙無線電已關閉時,就會發生此錯誤。

ResourceInUse 2

作業無法服務,因為目前正在使用必要的資源。

Success 0

作業已順利完成或服務。

TransportNotSupported 9

不支援傳輸。

備註

版本歷程記錄

Windows 版本 SDK 版本 已新增值
1511 10586 DisabledByUser
1607 14393 ConsentRequired
1703 15063 TransportNotSupported

適用於