GattDeviceService GattDeviceService GattDeviceService GattDeviceService Class

Represents a GATT Primary Service on a Bluetooth device. The GattDeviceService class represents a GATT service on a Bluetooth LE device. It is instantiated by using a device service instance path, obtained by finding a device using the Windows.Devices.Enumeration API.

Syntax

Declaration

public sealed class GattDeviceServicepublic sealed class GattDeviceServicePublic NotInheritable Class GattDeviceService

Properties summary

Gets the handle used to uniquely identify GATT-based service attributes as declared on the Bluetooth LE device.

Gets the BluetoothLEDevice object describing the device associated with the current GattDeviceService object.

Prerelease. Gets the device access information associated with the current GattDeviceService object.

Get the string that represents the GATT service instance path used to instantiate the GattDeviceService.

Gets the read-only list of parent services for this service.

Prerelease. Gets the session for this GATT device service instance.

The GATT Service UUID associated with this GattDeviceService.

Prerelease. Gets the sharing mode for this GATT device service instance.

Methods summary

Releases the resources associated with the GattDeviceService class. This allows other apps to access the resources of the GattDeviceService in question. A GattDeviceService object should not be used after Close is invoked, instead a new GattDeviceService object should be instantiated using the FromIdAsync method.

Converts a Bluetooth SIG defined short Id to a full GATT UUID.

Instantiates a new GattDeviceService from the device ID.

Instantiates a new GattDeviceService object from the device ID.

Gets the collection of all characteristics belonging to this GattDeviceService instance.

Gets the collection of all included services belonging to this GattDeviceService instance.

Returns a vector of characteristics, that are identified by the specified UUID and belong to this GattDeviceService instance.

Prerelease. Gets the characterisitics that are part of this GattDeviceService instance.

Prerelease. Gets the characterisitics that are part of this GattDeviceService instance.

Prerelease. Creates a suitable AQS Filter string for use with the CreateWatcher(System.String) method, from a BluetoothDeviceId.

Prerelease. Creates a suitable AQS Filter string for use with the CreateWatcher(System.String) method, from a BluetoothDeviceId.

Creates a suitable AQS Filter string for use with the CreateWatcher(System.String) method, from a 16-bit Bluetooth GATT Service UUID.

Creates a suitable AQS Filter string for use with the CreateWatcher(System.String) method, from a Bluetooth service UUID.

Returns a vector of included services, that are identified by the specified UUID and belong to this GattDeviceService instance.

Prerelease. Gets the included services that are associated with this GattDeviceService instance.

Prerelease. Gets the included services that are associated with this GattDeviceService instance.

Prerelease. Gets the characterisitics that are part of this GattDeviceService instance and associated with the characteristicUuid.

Prerelease. Gets the characterisitics that are part of this GattDeviceService instance and associated with the characteristicUuid.

Prerelease. Creates a suitable AQS Filter string for use with the CreateWatcher(System.String) method, from a BluetoothDeviceId and serviceUuid.

Prerelease. Creates a suitable AQS Filter string for use with the CreateWatcher(System.String) method, from a BluetoothDeviceId and serviceUuid.

Prerelease. Gets the included services from the serviceUuid that is associated with this GattDeviceService instance.

Prerelease. Gets the included services from the serviceUuid that is associated with this GattDeviceService instance.

Prerelease. Opens the GATT device service with the specified sharingMode.

Prerelease. Requests access to the GattDeviceService.

Properties

  • AttributeHandle
    AttributeHandle
    AttributeHandle
    AttributeHandle

    Gets the handle used to uniquely identify GATT-based service attributes as declared on the Bluetooth LE device.

    public ushort AttributeHandle { get; }public ushort AttributeHandle { get; }Public ReadOnly Property AttributeHandle As ushort

    Property Value

    • ushort
      ushort
      ushort
      ushort

      Handle to uniquely identify GATT-based service attributes.

  • Device
    Device
    Device
    Device

    Gets the BluetoothLEDevice object describing the device associated with the current GattDeviceService object.

    public BluetoothLEDevice Device { get; }public BluetoothLEDevice Device { get; }Public ReadOnly Property Device As BluetoothLEDevice

    Property Value

  • DeviceAccessInformation
    DeviceAccessInformation
    DeviceAccessInformation
    DeviceAccessInformation

    Prerelease. Gets the device access information associated with the current GattDeviceService object.

    public DeviceAccessInformation DeviceAccessInformation { get; }public DeviceAccessInformation DeviceAccessInformation { get; }Public ReadOnly Property DeviceAccessInformation As DeviceAccessInformation

    Property Value

  • DeviceId
    DeviceId
    DeviceId
    DeviceId

    Get the string that represents the GATT service instance path used to instantiate the GattDeviceService.

    public string DeviceId { get; }public string DeviceId { get; }Public ReadOnly Property DeviceId As string

    Property Value

    • string
      string
      string
      string

      String that represents the GATT service instance path used to instantiate the GattDeviceService.

  • ParentServices
    ParentServices
    ParentServices
    ParentServices

    Gets the read-only list of parent services for this service.

    public IVectorView<GattDeviceService> ParentServices { get; }public IVectorView<GattDeviceService> ParentServices { get; }Public ReadOnly Property ParentServices As IVectorView<GattDeviceService>

    Property Value

    • A read-only list of parent services from which this object is derived, if this GattDeviceService is an included service; Otherwise, null.

  • Session
    Session
    Session
    Session

    Prerelease. Gets the session for this GATT device service instance.

    public GattSession Session { get; }public GattSession Session { get; }Public ReadOnly Property Session As GattSession

    Property Value

  • Uuid
    Uuid
    Uuid
    Uuid

    The GATT Service UUID associated with this GattDeviceService.

    public Guid Uuid { get; }public Guid Uuid { get; }Public ReadOnly Property Uuid As Guid

    Property Value

    • System.Guid
      System.Guid
      System.Guid
      System.Guid

      A 128-bit Bluetooth GATT Service UUID, represented as a standard GUID object.

  • SharingMode
    SharingMode
    SharingMode
    SharingMode

    Prerelease. Gets the sharing mode for this GATT device service instance.

    public GattSharingMode SharingMode { get; }public GattSharingMode SharingMode { get; }Public ReadOnly Property SharingMode As GattSharingMode

    Property Value

Methods

  • Close()
    Close()
    Close()
    Close()

    Releases the resources associated with the GattDeviceService class. This allows other apps to access the resources of the GattDeviceService in question. A GattDeviceService object should not be used after Close is invoked, instead a new GattDeviceService object should be instantiated using the FromIdAsync method.

    public void Close()public void Close()Public Function Close() As void
  • ConvertShortIdToUuid(System.UInt16)
    ConvertShortIdToUuid(System.UInt16)
    ConvertShortIdToUuid(System.UInt16)
    ConvertShortIdToUuid(System.UInt16)

    Converts a Bluetooth SIG defined short Id to a full GATT UUID.

    public static Guid ConvertShortIdToUuid(System.UInt16 shortId)public static Guid ConvertShortIdToUuid(System.UInt16 shortId)Public Static Function ConvertShortIdToUuid(shortId As System.UInt16) As Guid

    Parameters

    • shortId
      System.UInt16
      System.UInt16
      System.UInt16
      System.UInt16

      A 16-bit Bluetooth GATT Service UUID.

    Returns

    • System.Guid
      System.Guid
      System.Guid
      System.Guid

      The corresponding 128-bit GATT Service UUID, that uniquely identifies this service.

  • FromIdAsync(System.String)
    FromIdAsync(System.String)
    FromIdAsync(System.String)
    FromIdAsync(System.String)

    Instantiates a new GattDeviceService from the device ID.

    public static IAsyncOperation<GattDeviceService> FromIdAsync(System.String deviceId)public static IAsyncOperation<GattDeviceService> FromIdAsync(System.String deviceId)Public Static Function FromIdAsync(deviceId As System.String) As IAsyncOperation( Of GattDeviceService )

    Parameters

    • deviceId
      System.String
      System.String
      System.String
      System.String

      The GATT device ID.

    Returns

    • The object for managing the asynchronous operation, which, upon completion, returns the newly instantiated GattDeviceService.

    Remarks

    The first time this method is invoked by a store app, it should be called from a UI thread in order to display the consent prompt. After the user has granted consent, the method can be invoked from any application thread.

    If a store app has not declared the right capabilities or the user does not grant consent, the method returns a null object.

    For Windows 10Universal Windows Platform (UWP) apps, use the bluetooth capability. For more info see App capability declarations.For Windows 8.x store apps, see How to specify device capabilities for Bluetooth (Windows) to declare the right capabilities.

  • FromIdAsync(System.String,Windows.Devices.Bluetooth.GenericAttributeProfile.GattSharingMode)
    FromIdAsync(System.String,Windows.Devices.Bluetooth.GenericAttributeProfile.GattSharingMode)
    FromIdAsync(System.String,Windows.Devices.Bluetooth.GenericAttributeProfile.GattSharingMode)
    FromIdAsync(System.String,Windows.Devices.Bluetooth.GenericAttributeProfile.GattSharingMode)

    Instantiates a new GattDeviceService object from the device ID.

    public static IAsyncOperation<GattDeviceService> FromIdAsync(System.String deviceId,Windows.Devices.Bluetooth.GenericAttributeProfile.GattSharingMode sharingMode)public static IAsyncOperation<GattDeviceService> FromIdAsync(System.String deviceId,Windows.Devices.Bluetooth.GenericAttributeProfile.GattSharingMode sharingMode)Public Static Function FromIdAsync(deviceId As System.String,sharingMode As Windows.Devices.Bluetooth.GenericAttributeProfile.GattSharingMode) As IAsyncOperation( Of GattDeviceService )

    Parameters

    Returns

    • An asynchronous operation that completes with a GattDeviceService object.

  • GetAllCharacteristics()
    GetAllCharacteristics()
    GetAllCharacteristics()
    GetAllCharacteristics()

    Gets the collection of all characteristics belonging to this GattDeviceService instance.

    public IVectorView<GattCharacteristic> GetAllCharacteristics()public IVectorView<GattCharacteristic> GetAllCharacteristics()Public Function GetAllCharacteristics() As IVectorView( Of GattCharacteristic )

    Returns

    • The collection of all characteristics belonging to this GattDeviceService instance.

  • GetAllIncludedServices()
    GetAllIncludedServices()
    GetAllIncludedServices()
    GetAllIncludedServices()

    Gets the collection of all included services belonging to this GattDeviceService instance.

    public IVectorView<GattDeviceService> GetAllIncludedServices()public IVectorView<GattDeviceService> GetAllIncludedServices()Public Function GetAllIncludedServices() As IVectorView( Of GattDeviceService )

    Returns

    • The collection of all included services belonging to this GattDeviceService instance.

  • GetCharacteristics(System.Guid)
    GetCharacteristics(System.Guid)
    GetCharacteristics(System.Guid)
    GetCharacteristics(System.Guid)

    Returns a vector of characteristics, that are identified by the specified UUID and belong to this GattDeviceService instance.

    public IVectorView<GattCharacteristic> GetCharacteristics(System.Guid characteristicUuid)public IVectorView<GattCharacteristic> GetCharacteristics(System.Guid characteristicUuid)Public Function GetCharacteristics(characteristicUuid As System.Guid) As IVectorView( Of GattCharacteristic )

    Parameters

    • characteristicUuid
      System.Guid
      System.Guid
      System.Guid
      System.Guid

      The UUID for the characteristics to be retrieved.

    Returns

    • A vector of GattCharacteristic objects whose UUIDs match characteristicUuid.

    Remarks

    Only a single app can access a single service. If one app has registered a GATT notification trigger, this method will throw an exception for all other apps that sub subsequently call this API.

  • GetCharacteristicsAsync()
    GetCharacteristicsAsync()
    GetCharacteristicsAsync()
    GetCharacteristicsAsync()

    Prerelease. Gets the characterisitics that are part of this GattDeviceService instance.

    public IAsyncOperation<GattCharacteristicsResult> GetCharacteristicsAsync()public IAsyncOperation<GattCharacteristicsResult> GetCharacteristicsAsync()Public Function GetCharacteristicsAsync() As IAsyncOperation( Of GattCharacteristicsResult )

    Returns

    • An asynchronous operation that completes with a GattCharacteristicsResult object.

  • GetCharacteristicsAsync(Windows.Devices.Bluetooth.BluetoothCacheMode)
    GetCharacteristicsAsync(Windows.Devices.Bluetooth.BluetoothCacheMode)
    GetCharacteristicsAsync(Windows.Devices.Bluetooth.BluetoothCacheMode)
    GetCharacteristicsAsync(Windows.Devices.Bluetooth.BluetoothCacheMode)

    Prerelease. Gets the characterisitics that are part of this GattDeviceService instance.

    public IAsyncOperation<GattCharacteristicsResult> GetCharacteristicsAsync(Windows.Devices.Bluetooth.BluetoothCacheMode cacheMode)public IAsyncOperation<GattCharacteristicsResult> GetCharacteristicsAsync(Windows.Devices.Bluetooth.BluetoothCacheMode cacheMode)Public Function GetCharacteristicsAsync(cacheMode As Windows.Devices.Bluetooth.BluetoothCacheMode) As IAsyncOperation( Of GattCharacteristicsResult )

    Parameters

    Returns

    • An asynchronous operation that completes with a GattCharacteristicsResult object.

  • GetDeviceSelectorForBluetoothDeviceId(Windows.Devices.Bluetooth.BluetoothDeviceId)
    GetDeviceSelectorForBluetoothDeviceId(Windows.Devices.Bluetooth.BluetoothDeviceId)
    GetDeviceSelectorForBluetoothDeviceId(Windows.Devices.Bluetooth.BluetoothDeviceId)
    GetDeviceSelectorForBluetoothDeviceId(Windows.Devices.Bluetooth.BluetoothDeviceId)

    Prerelease. Creates a suitable AQS Filter string for use with the CreateWatcher(System.String) method, from a BluetoothDeviceId.

    public static string GetDeviceSelectorForBluetoothDeviceId(Windows.Devices.Bluetooth.BluetoothDeviceId bluetoothDeviceId)public static string GetDeviceSelectorForBluetoothDeviceId(Windows.Devices.Bluetooth.BluetoothDeviceId bluetoothDeviceId)Public Static Function GetDeviceSelectorForBluetoothDeviceId(bluetoothDeviceId As Windows.Devices.Bluetooth.BluetoothDeviceId) As string

    Parameters

    Returns

    • string
      string
      string
      string

      A suitable AQS Selector String which can be passed as a parameter to the CreateWatcher(System.String) method, in order to retrieve a GATT service instance path

  • GetDeviceSelectorForBluetoothDeviceId(Windows.Devices.Bluetooth.BluetoothDeviceId,Windows.Devices.Bluetooth.BluetoothCacheMode)
    GetDeviceSelectorForBluetoothDeviceId(Windows.Devices.Bluetooth.BluetoothDeviceId,Windows.Devices.Bluetooth.BluetoothCacheMode)
    GetDeviceSelectorForBluetoothDeviceId(Windows.Devices.Bluetooth.BluetoothDeviceId,Windows.Devices.Bluetooth.BluetoothCacheMode)
    GetDeviceSelectorForBluetoothDeviceId(Windows.Devices.Bluetooth.BluetoothDeviceId,Windows.Devices.Bluetooth.BluetoothCacheMode)

    Prerelease. Creates a suitable AQS Filter string for use with the CreateWatcher(System.String) method, from a BluetoothDeviceId.

    public static string GetDeviceSelectorForBluetoothDeviceId(Windows.Devices.Bluetooth.BluetoothDeviceId bluetoothDeviceId,Windows.Devices.Bluetooth.BluetoothCacheMode cacheMode)public static string GetDeviceSelectorForBluetoothDeviceId(Windows.Devices.Bluetooth.BluetoothDeviceId bluetoothDeviceId,Windows.Devices.Bluetooth.BluetoothCacheMode cacheMode)Public Static Function GetDeviceSelectorForBluetoothDeviceId(bluetoothDeviceId As Windows.Devices.Bluetooth.BluetoothDeviceId,cacheMode As Windows.Devices.Bluetooth.BluetoothCacheMode) As string

    Parameters

    Returns

    • string
      string
      string
      string

      A suitable AQS Selector String which can be passed as a parameter to the CreateWatcher(System.String) method, in order to retrieve a GATT service instance path

  • GetDeviceSelectorFromShortId(System.UInt16)
    GetDeviceSelectorFromShortId(System.UInt16)
    GetDeviceSelectorFromShortId(System.UInt16)
    GetDeviceSelectorFromShortId(System.UInt16)

    Creates a suitable AQS Filter string for use with the CreateWatcher(System.String) method, from a 16-bit Bluetooth GATT Service UUID.

    public static string GetDeviceSelectorFromShortId(System.UInt16 serviceShortId)public static string GetDeviceSelectorFromShortId(System.UInt16 serviceShortId)Public Static Function GetDeviceSelectorFromShortId(serviceShortId As System.UInt16) As string

    Parameters

    • serviceShortId
      System.UInt16
      System.UInt16
      System.UInt16
      System.UInt16

      A 16-bit Bluetooth GATT Service UUID.

    Returns

    • string
      string
      string
      string

      A suitable AQS Selector String which can be passed as a parameter to the CreateWatcher(System.String) method, in order to retrieve a GATT service instance path

  • GetDeviceSelectorFromUuid(System.Guid)
    GetDeviceSelectorFromUuid(System.Guid)
    GetDeviceSelectorFromUuid(System.Guid)
    GetDeviceSelectorFromUuid(System.Guid)

    Creates a suitable AQS Filter string for use with the CreateWatcher(System.String) method, from a Bluetooth service UUID.

    public static string GetDeviceSelectorFromUuid(System.Guid serviceUuid)public static string GetDeviceSelectorFromUuid(System.Guid serviceUuid)Public Static Function GetDeviceSelectorFromUuid(serviceUuid As System.Guid) As string

    Parameters

    • serviceUuid
      System.Guid
      System.Guid
      System.Guid
      System.Guid

      A 128-bit Bluetooth GATT Service UUID, represented as a standard GUID object.

    Returns

    • string
      string
      string
      string

      A suitable AQS Selector String which can be passed as a parameter to the CreateWatcher(System.String) method, in order to retrieve a GATT service instance path.

  • GetIncludedServices(System.Guid)
    GetIncludedServices(System.Guid)
    GetIncludedServices(System.Guid)
    GetIncludedServices(System.Guid)

    Returns a vector of included services, that are identified by the specified UUID and belong to this GattDeviceService instance.

    public IVectorView<GattDeviceService> GetIncludedServices(System.Guid serviceUuid)public IVectorView<GattDeviceService> GetIncludedServices(System.Guid serviceUuid)Public Function GetIncludedServices(serviceUuid As System.Guid) As IVectorView( Of GattDeviceService )

    Parameters

    • serviceUuid
      System.Guid
      System.Guid
      System.Guid
      System.Guid

      The UUID for the included services to be retrieved.

    Returns

    • A vector of included services whose UUIDs match serviceUuid.

  • GetIncludedServicesAsync()
    GetIncludedServicesAsync()
    GetIncludedServicesAsync()
    GetIncludedServicesAsync()

    Prerelease. Gets the included services that are associated with this GattDeviceService instance.

    public IAsyncOperation<GattDeviceServicesResult> GetIncludedServicesAsync()public IAsyncOperation<GattDeviceServicesResult> GetIncludedServicesAsync()Public Function GetIncludedServicesAsync() As IAsyncOperation( Of GattDeviceServicesResult )

    Returns

    • An asynchronous operation that completes with a GattDeviceServicesResult object.

  • GetIncludedServicesAsync(Windows.Devices.Bluetooth.BluetoothCacheMode)
    GetIncludedServicesAsync(Windows.Devices.Bluetooth.BluetoothCacheMode)
    GetIncludedServicesAsync(Windows.Devices.Bluetooth.BluetoothCacheMode)
    GetIncludedServicesAsync(Windows.Devices.Bluetooth.BluetoothCacheMode)

    Prerelease. Gets the included services that are associated with this GattDeviceService instance.

    public IAsyncOperation<GattDeviceServicesResult> GetIncludedServicesAsync(Windows.Devices.Bluetooth.BluetoothCacheMode cacheMode)public IAsyncOperation<GattDeviceServicesResult> GetIncludedServicesAsync(Windows.Devices.Bluetooth.BluetoothCacheMode cacheMode)Public Function GetIncludedServicesAsync(cacheMode As Windows.Devices.Bluetooth.BluetoothCacheMode) As IAsyncOperation( Of GattDeviceServicesResult )

    Parameters

    Returns

    • An asynchronous operation that completes with a GattDeviceServicesResult object.

  • GetCharacteristicsForUuidAsync(System.Guid)
    GetCharacteristicsForUuidAsync(System.Guid)
    GetCharacteristicsForUuidAsync(System.Guid)
    GetCharacteristicsForUuidAsync(System.Guid)

    Prerelease. Gets the characterisitics that are part of this GattDeviceService instance and associated with the characteristicUuid.

    public IAsyncOperation<GattCharacteristicsResult> GetCharacteristicsForUuidAsync(System.Guid characteristicUuid)public IAsyncOperation<GattCharacteristicsResult> GetCharacteristicsForUuidAsync(System.Guid characteristicUuid)Public Function GetCharacteristicsForUuidAsync(characteristicUuid As System.Guid) As IAsyncOperation( Of GattCharacteristicsResult )

    Parameters

    • characteristicUuid
      System.Guid
      System.Guid
      System.Guid
      System.Guid

      The UUID for the characteristics to be retrieved.

    Returns

    • An asynchronous operation that completes with a GattCharacteristicsResult object.

  • GetCharacteristicsForUuidAsync(System.Guid,Windows.Devices.Bluetooth.BluetoothCacheMode)
    GetCharacteristicsForUuidAsync(System.Guid,Windows.Devices.Bluetooth.BluetoothCacheMode)
    GetCharacteristicsForUuidAsync(System.Guid,Windows.Devices.Bluetooth.BluetoothCacheMode)
    GetCharacteristicsForUuidAsync(System.Guid,Windows.Devices.Bluetooth.BluetoothCacheMode)

    Prerelease. Gets the characterisitics that are part of this GattDeviceService instance and associated with the characteristicUuid.

    public IAsyncOperation<GattCharacteristicsResult> GetCharacteristicsForUuidAsync(System.Guid characteristicUuid,Windows.Devices.Bluetooth.BluetoothCacheMode cacheMode)public IAsyncOperation<GattCharacteristicsResult> GetCharacteristicsForUuidAsync(System.Guid characteristicUuid,Windows.Devices.Bluetooth.BluetoothCacheMode cacheMode)Public Function GetCharacteristicsForUuidAsync(characteristicUuid As System.Guid,cacheMode As Windows.Devices.Bluetooth.BluetoothCacheMode) As IAsyncOperation( Of GattCharacteristicsResult )

    Parameters

    Returns

    • An asynchronous operation that completes with a GattCharacteristicsResult object.

  • GetDeviceSelectorForBluetoothDeviceIdAndUuid(Windows.Devices.Bluetooth.BluetoothDeviceId,System.Guid)
    GetDeviceSelectorForBluetoothDeviceIdAndUuid(Windows.Devices.Bluetooth.BluetoothDeviceId,System.Guid)
    GetDeviceSelectorForBluetoothDeviceIdAndUuid(Windows.Devices.Bluetooth.BluetoothDeviceId,System.Guid)
    GetDeviceSelectorForBluetoothDeviceIdAndUuid(Windows.Devices.Bluetooth.BluetoothDeviceId,System.Guid)

    Prerelease. Creates a suitable AQS Filter string for use with the CreateWatcher(System.String) method, from a BluetoothDeviceId and serviceUuid.

    public static string GetDeviceSelectorForBluetoothDeviceIdAndUuid(Windows.Devices.Bluetooth.BluetoothDeviceId bluetoothDeviceId,System.Guid serviceUuid)public static string GetDeviceSelectorForBluetoothDeviceIdAndUuid(Windows.Devices.Bluetooth.BluetoothDeviceId bluetoothDeviceId,System.Guid serviceUuid)Public Static Function GetDeviceSelectorForBluetoothDeviceIdAndUuid(bluetoothDeviceId As Windows.Devices.Bluetooth.BluetoothDeviceId,serviceUuid As System.Guid) As string

    Parameters

    Returns

    • string
      string
      string
      string

      A suitable AQS Selector String which can be passed as a parameter to the CreateWatcher(System.String) method, in order to retrieve a GATT service instance path

  • GetDeviceSelectorForBluetoothDeviceIdAndUuid(Windows.Devices.Bluetooth.BluetoothDeviceId,System.Guid,Windows.Devices.Bluetooth.BluetoothCacheMode)
    GetDeviceSelectorForBluetoothDeviceIdAndUuid(Windows.Devices.Bluetooth.BluetoothDeviceId,System.Guid,Windows.Devices.Bluetooth.BluetoothCacheMode)
    GetDeviceSelectorForBluetoothDeviceIdAndUuid(Windows.Devices.Bluetooth.BluetoothDeviceId,System.Guid,Windows.Devices.Bluetooth.BluetoothCacheMode)
    GetDeviceSelectorForBluetoothDeviceIdAndUuid(Windows.Devices.Bluetooth.BluetoothDeviceId,System.Guid,Windows.Devices.Bluetooth.BluetoothCacheMode)

    Prerelease. Creates a suitable AQS Filter string for use with the CreateWatcher(System.String) method, from a BluetoothDeviceId and serviceUuid.

    public static string GetDeviceSelectorForBluetoothDeviceIdAndUuid(Windows.Devices.Bluetooth.BluetoothDeviceId bluetoothDeviceId,System.Guid serviceUuid,Windows.Devices.Bluetooth.BluetoothCacheMode cacheMode)public static string GetDeviceSelectorForBluetoothDeviceIdAndUuid(Windows.Devices.Bluetooth.BluetoothDeviceId bluetoothDeviceId,System.Guid serviceUuid,Windows.Devices.Bluetooth.BluetoothCacheMode cacheMode)Public Static Function GetDeviceSelectorForBluetoothDeviceIdAndUuid(bluetoothDeviceId As Windows.Devices.Bluetooth.BluetoothDeviceId,serviceUuid As System.Guid,cacheMode As Windows.Devices.Bluetooth.BluetoothCacheMode) As string

    Parameters

    Returns

    • string
      string
      string
      string

      A suitable AQS Selector String which can be passed as a parameter to the CreateWatcher(System.String) method, in order to retrieve a GATT service instance path

  • GetIncludedServicesForUuidAsync(System.Guid)
    GetIncludedServicesForUuidAsync(System.Guid)
    GetIncludedServicesForUuidAsync(System.Guid)
    GetIncludedServicesForUuidAsync(System.Guid)

    Prerelease. Gets the included services from the serviceUuid that is associated with this GattDeviceService instance.

    public IAsyncOperation<GattDeviceServicesResult> GetIncludedServicesForUuidAsync(System.Guid serviceUuid)public IAsyncOperation<GattDeviceServicesResult> GetIncludedServicesForUuidAsync(System.Guid serviceUuid)Public Function GetIncludedServicesForUuidAsync(serviceUuid As System.Guid) As IAsyncOperation( Of GattDeviceServicesResult )

    Parameters

    • serviceUuid
      System.Guid
      System.Guid
      System.Guid
      System.Guid

      A 128-bit Bluetooth GATT Service UUID, represented as a standard GUID object.

    Returns

    • An asynchronous operation that completes with a GattDeviceServicesResult object.

  • GetIncludedServicesForUuidAsync(System.Guid,Windows.Devices.Bluetooth.BluetoothCacheMode)
    GetIncludedServicesForUuidAsync(System.Guid,Windows.Devices.Bluetooth.BluetoothCacheMode)
    GetIncludedServicesForUuidAsync(System.Guid,Windows.Devices.Bluetooth.BluetoothCacheMode)
    GetIncludedServicesForUuidAsync(System.Guid,Windows.Devices.Bluetooth.BluetoothCacheMode)

    Prerelease. Gets the included services from the serviceUuid that is associated with this GattDeviceService instance.

    public IAsyncOperation<GattDeviceServicesResult> GetIncludedServicesForUuidAsync(System.Guid serviceUuid,Windows.Devices.Bluetooth.BluetoothCacheMode cacheMode)public IAsyncOperation<GattDeviceServicesResult> GetIncludedServicesForUuidAsync(System.Guid serviceUuid,Windows.Devices.Bluetooth.BluetoothCacheMode cacheMode)Public Function GetIncludedServicesForUuidAsync(serviceUuid As System.Guid,cacheMode As Windows.Devices.Bluetooth.BluetoothCacheMode) As IAsyncOperation( Of GattDeviceServicesResult )

    Parameters

    Returns

    • An asynchronous operation that completes with a GattDeviceServicesResult object.

  • OpenAsync(Windows.Devices.Bluetooth.GenericAttributeProfile.GattSharingMode)
    OpenAsync(Windows.Devices.Bluetooth.GenericAttributeProfile.GattSharingMode)
    OpenAsync(Windows.Devices.Bluetooth.GenericAttributeProfile.GattSharingMode)
    OpenAsync(Windows.Devices.Bluetooth.GenericAttributeProfile.GattSharingMode)

    Prerelease. Opens the GATT device service with the specified sharingMode.

    public IAsyncOperation<GattOpenStatus> OpenAsync(Windows.Devices.Bluetooth.GenericAttributeProfile.GattSharingMode sharingMode)public IAsyncOperation<GattOpenStatus> OpenAsync(Windows.Devices.Bluetooth.GenericAttributeProfile.GattSharingMode sharingMode)Public Function OpenAsync(sharingMode As Windows.Devices.Bluetooth.GenericAttributeProfile.GattSharingMode) As IAsyncOperation( Of GattOpenStatus )

    Parameters

    Returns

    • An asynchronous operation that completes with a GattOpenStatus object.

  • RequestAccessAsync()
    RequestAccessAsync()
    RequestAccessAsync()
    RequestAccessAsync()

    Prerelease. Requests access to the GattDeviceService.

    public IAsyncOperation<DeviceAccessStatus> RequestAccessAsync()public IAsyncOperation<DeviceAccessStatus> RequestAccessAsync()Public Function RequestAccessAsync() As IAsyncOperation( Of DeviceAccessStatus )

    Returns

    • An asynchronous operation that completes with a DeviceAccessStatus object.

Device family

Windows 10 (introduced v10.0.10240.0)

API contract

Windows.Foundation.UniversalApiContract (introduced v1)

Attributes

Windows.Foundation.Metadata.StaticAttribute
Windows.Foundation.Metadata.StaticAttribute
Windows.Foundation.Metadata.ThreadingAttribute
Windows.Foundation.Metadata.ContractVersionAttribute
Windows.Foundation.Metadata.MarshalingBehaviorAttribute
Windows.Foundation.Metadata.DualApiPartitionAttribute

Details

Assembly

Windows.Devices.Bluetooth.GenericAttributeProfile.dll