Share via


GattServiceProviderAdvertisingParameters Class

Definition

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

public ref class GattServiceProviderAdvertisingParameters sealed
/// [Windows.Foundation.Metadata.Activatable(262144, "Windows.Foundation.UniversalApiContract")]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 262144)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class GattServiceProviderAdvertisingParameters final
[Windows.Foundation.Metadata.Activatable(262144, "Windows.Foundation.UniversalApiContract")]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 262144)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class GattServiceProviderAdvertisingParameters
function GattServiceProviderAdvertisingParameters()
Public NotInheritable Class GattServiceProviderAdvertisingParameters
Inheritance
Object Platform::Object IInspectable GattServiceProviderAdvertisingParameters
Attributes

Windows requirements

Device family
Windows 10 Creators Update (introduced in 10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v4.0)
App capabilities
bluetooth

Remarks

Version history

Windows version SDK version Value added
1903 18362 ServiceData

Constructors

GattServiceProviderAdvertisingParameters()

Creates a new GattServiceProviderAdvertisingParameters object.

Properties

IsConnectable

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

IsDiscoverable

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

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.

UseLowEnergyUncoded1MPhyAsSecondaryPhy
UseLowEnergyUncoded2MPhyAsSecondaryPhy

Applies to