Share via


BluetoothCacheMode Enum

Definition

Indicates whether applicable Bluetooth API methods should operate on values cached in the system, or whether they should retrieve those values from the Bluetooth device. See Remarks in the member topic.

public enum class BluetoothCacheMode
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
enum class BluetoothCacheMode
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public enum BluetoothCacheMode
var value = Windows.Devices.Bluetooth.BluetoothCacheMode.cached
Public Enum BluetoothCacheMode
Inheritance
BluetoothCacheMode
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
Cached 0

The behavior of Cached depends on the API.

For the following APIs, Cached means only use values cached in the system cached (if not cached then don't fall back to querying the device).

For the following APIs, Cached means try looking in the cache first and, if not there, then retrieve from the device.

Uncached 1

The behavior of Uncached is to retrieve values from the Bluetooth device.

Remarks

The cache in question is a local, system-wide cache (maintained by the operating system, or OS) of GATT attributes for a particular remote device. System-wide; not per-process. Entries in the cache become invalidated whenever the remote device indicates a service change, or when the device becomes unpaired.

Applies to

See also