Represents a GATT Primary Service on a Bluetooth device.
var gattDeviceService = Windows.Devices.Bluetooth.GenericAttributeProfile.GattDeviceService;
The GattDeviceService class has these types of members:
The GattDeviceService class has these methods. With C#, Visual Basic, and C++, it also inherits methods from the Object class.
|ConvertShortIdToUuid||Converts a Bluetooth SIG defined short Id to a full GATT UUID.|
|Dispose [C#, VB]||Performs tasks associated with freeing, releasing, or resetting unmanaged resources.|
|FromIdAsync||Instantiates a new GattDeviceService from the device ID.|
|GetAllCharacteristics||Gets the collection of all characteristics belonging to this GattDeviceService instance.|
|GetAllIncludedServices||Gets the collection of all included services belonging to this GattDeviceService instance.|
|GetCharacteristics||Returns a vector of characteristics, that are identified by the specified UUID and belong to this GattDeviceService instance.|
|GetDeviceSelectorFromShortId||Creates a suitable AQS Filter string for use with the Windows Device Enumeration: findAllAsync API, from a 16-bit Bluetooth GATT Service UUID.|
|GetDeviceSelectorFromUuid||Creates a suitable AQS Filter string for use with the Windows Device Enumeration: findAllAsync API, from a Bluetooth service UUID.|
|GetIncludedServices||Returns a vector of included services, that are identified by the specified UUID and belong to this GattDeviceService instance.|
The GattDeviceService class has these properties.
|Read-only||Gets the handle used to uniquely identify GATT-based service attributes as declared on the Bluetooth LE device.|
|Read-only||Gets the BluetoothLEDevice object describing the device associated with the current GattDeviceService object.|
|Read-only||Get the string that represents the GATT service instance path used to instantiate the GattDeviceService.|
|Read-only||Gets the read-only list of parent services for this service.|
|Read-only||The GATT Service UUID associated with this GattDeviceService.|
The GattDeviceService class represents a GATT service on a Bluetooth LE device, it is instantiated by using a device service instance path, obtained by using the Windows Device Enumeration API.
Minimum supported client
|Windows 8.1 [Windows Store apps, desktop apps]|
Minimum supported server
|None supported [Windows Store apps, desktop apps]|
Minimum supported phone
|Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]|