GattServiceProviderAdvertisingParameters GattServiceProviderAdvertisingParameters GattServiceProviderAdvertisingParameters GattServiceProviderAdvertisingParameters GattServiceProviderAdvertisingParameters Class

Definition

This class is used to define a GATT service advertisement parameters.

public : sealed class GattServiceProviderAdvertisingParameters
struct winrt::Windows::Devices::Bluetooth::GenericAttributeProfile::GattServiceProviderAdvertisingParameters
public sealed class GattServiceProviderAdvertisingParameters
Public NotInheritable Class GattServiceProviderAdvertisingParameters
var gattServiceProviderAdvertisingParameters = new gattServiceProviderAdvertisingParameters();
Attributes

Windows 10 requirements

Device family
Windows 10 Creators Update (introduced v10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v4)
Capabilities
bluetooth

Remarks

Version history

Windows version SDK version Value added
1903 18362 ServiceData

Constructors

GattServiceProviderAdvertisingParameters() GattServiceProviderAdvertisingParameters() GattServiceProviderAdvertisingParameters() GattServiceProviderAdvertisingParameters() GattServiceProviderAdvertisingParameters()

Creates a new GattServiceProviderAdvertisingParameters object.

Properties

IsConnectable IsConnectable IsConnectable IsConnectable IsConnectable

Gets or sets a boolean that indicates if the GATT service is connectable.

IsDiscoverable IsDiscoverable IsDiscoverable IsDiscoverable IsDiscoverable

Gets or sets a boolean indicating that the GATT service is discoverable.

ServiceData ServiceData ServiceData ServiceData ServiceData

For Bluetooth Low Energy, this parameter adds an additional ServiceData section to the advertisement payload for the service's service UUID if space is available. If the service data is added to the advertisement, then the service UUID will also be included in the same section in the advertisement.