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 GattDeviceServicepublic sealed 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.

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

The GATT Service UUID associated with this GattDeviceService.

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.

Prerelease. 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. 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(String) method, from a BluetoothDeviceId.

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

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

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

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

Creates a suitable AQS Filter string for use with the CreateWatcher(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 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 ushortpublic ushort AttributeHandle { get; }

    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 BluetoothLEDevicepublic BluetoothLEDevice Device { get; }

    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 DeviceAccessInformationpublic DeviceAccessInformation DeviceAccessInformation { get; }

    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 stringpublic string DeviceId { get; }

    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>public IVectorView<GattDeviceService> ParentServices { get; }

    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 GattSessionpublic GattSession Session { get; }

    Property Value

  • 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 GattSharingModepublic GattSharingMode SharingMode { get; }

    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 Guidpublic Guid Uuid { get; }

    Property Value

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

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

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 voidpublic void Close()
  • ConvertShortIdToUuid(UInt16)
    ConvertShortIdToUuid(UInt16)
    ConvertShortIdToUuid(UInt16)
    ConvertShortIdToUuid(UInt16)

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

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

    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(String)
    FromIdAsync(String)
    FromIdAsync(String)
    FromIdAsync(String)

    Instantiates a new GattDeviceService from the device ID.

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

    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(String, GattSharingMode)
    FromIdAsync(String, GattSharingMode)
    FromIdAsync(String, GattSharingMode)
    FromIdAsync(String, GattSharingMode)

    Prerelease. Instantiates a new GattDeviceService object from the device ID.

    public static IAsyncOperation<GattDeviceService> FromIdAsync(String deviceId, GattSharingMode sharingMode)public static IAsyncOperation<GattDeviceService> FromIdAsync(String deviceId, GattSharingMode sharingMode)Public Static Function FromIdAsync(deviceId As String, sharingMode As GattSharingMode) As IAsyncOperation( Of GattDeviceService )public static IAsyncOperation<GattDeviceService> FromIdAsync(String deviceId, GattSharingMode sharingMode)

    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 )public IVectorView<GattCharacteristic> GetAllCharacteristics()

    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 )public IVectorView<GattDeviceService> GetAllIncludedServices()

    Returns

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

  • GetCharacteristics(Guid)
    GetCharacteristics(Guid)
    GetCharacteristics(Guid)
    GetCharacteristics(Guid)

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

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

    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 )public IAsyncOperation<GattCharacteristicsResult> GetCharacteristicsAsync()

    Returns

    • An asynchronous operation that completes with a GattCharacteristicsResult object.

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

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

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

    Parameters

    Returns

    • An asynchronous operation that completes with a GattCharacteristicsResult object.

  • GetCharacteristicsForUuidAsync(Guid)
    GetCharacteristicsForUuidAsync(Guid)
    GetCharacteristicsForUuidAsync(Guid)
    GetCharacteristicsForUuidAsync(Guid)

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

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

    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(Guid, BluetoothCacheMode)
    GetCharacteristicsForUuidAsync(Guid, BluetoothCacheMode)
    GetCharacteristicsForUuidAsync(Guid, BluetoothCacheMode)
    GetCharacteristicsForUuidAsync(Guid, BluetoothCacheMode)

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

    public IAsyncOperation<GattCharacteristicsResult> GetCharacteristicsForUuidAsync(Guid characteristicUuid, BluetoothCacheMode cacheMode)public IAsyncOperation<GattCharacteristicsResult> GetCharacteristicsForUuidAsync(Guid characteristicUuid, BluetoothCacheMode cacheMode)Public Function GetCharacteristicsForUuidAsync(characteristicUuid As Guid, cacheMode As BluetoothCacheMode) As IAsyncOperation( Of GattCharacteristicsResult )public IAsyncOperation<GattCharacteristicsResult> GetCharacteristicsForUuidAsync(Guid characteristicUuid, BluetoothCacheMode cacheMode)

    Parameters

    Returns

    • An asynchronous operation that completes with a GattCharacteristicsResult object.

  • GetDeviceSelectorForBluetoothDeviceId(BluetoothDeviceId)
    GetDeviceSelectorForBluetoothDeviceId(BluetoothDeviceId)
    GetDeviceSelectorForBluetoothDeviceId(BluetoothDeviceId)
    GetDeviceSelectorForBluetoothDeviceId(BluetoothDeviceId)

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

    public static string GetDeviceSelectorForBluetoothDeviceId(BluetoothDeviceId bluetoothDeviceId)public static string GetDeviceSelectorForBluetoothDeviceId(BluetoothDeviceId bluetoothDeviceId)Public Static Function GetDeviceSelectorForBluetoothDeviceId(bluetoothDeviceId As BluetoothDeviceId) As stringpublic static string GetDeviceSelectorForBluetoothDeviceId(BluetoothDeviceId bluetoothDeviceId)

    Parameters

    Returns

    • string
      string
      string
      string

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

  • GetDeviceSelectorForBluetoothDeviceId(BluetoothDeviceId, BluetoothCacheMode)
    GetDeviceSelectorForBluetoothDeviceId(BluetoothDeviceId, BluetoothCacheMode)
    GetDeviceSelectorForBluetoothDeviceId(BluetoothDeviceId, BluetoothCacheMode)
    GetDeviceSelectorForBluetoothDeviceId(BluetoothDeviceId, BluetoothCacheMode)

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

    public static string GetDeviceSelectorForBluetoothDeviceId(BluetoothDeviceId bluetoothDeviceId, BluetoothCacheMode cacheMode)public static string GetDeviceSelectorForBluetoothDeviceId(BluetoothDeviceId bluetoothDeviceId, BluetoothCacheMode cacheMode)Public Static Function GetDeviceSelectorForBluetoothDeviceId(bluetoothDeviceId As BluetoothDeviceId, cacheMode As BluetoothCacheMode) As stringpublic static string GetDeviceSelectorForBluetoothDeviceId(BluetoothDeviceId bluetoothDeviceId, BluetoothCacheMode cacheMode)

    Parameters

    Returns

    • string
      string
      string
      string

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

  • GetDeviceSelectorForBluetoothDeviceIdAndUuid(BluetoothDeviceId, Guid)
    GetDeviceSelectorForBluetoothDeviceIdAndUuid(BluetoothDeviceId, Guid)
    GetDeviceSelectorForBluetoothDeviceIdAndUuid(BluetoothDeviceId, Guid)
    GetDeviceSelectorForBluetoothDeviceIdAndUuid(BluetoothDeviceId, Guid)

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

    public static string GetDeviceSelectorForBluetoothDeviceIdAndUuid(BluetoothDeviceId bluetoothDeviceId, Guid serviceUuid)public static string GetDeviceSelectorForBluetoothDeviceIdAndUuid(BluetoothDeviceId bluetoothDeviceId, Guid serviceUuid)Public Static Function GetDeviceSelectorForBluetoothDeviceIdAndUuid(bluetoothDeviceId As BluetoothDeviceId, serviceUuid As Guid) As stringpublic static string GetDeviceSelectorForBluetoothDeviceIdAndUuid(BluetoothDeviceId bluetoothDeviceId, Guid serviceUuid)

    Parameters

    Returns

    • string
      string
      string
      string

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

  • GetDeviceSelectorForBluetoothDeviceIdAndUuid(BluetoothDeviceId, Guid, BluetoothCacheMode)
    GetDeviceSelectorForBluetoothDeviceIdAndUuid(BluetoothDeviceId, Guid, BluetoothCacheMode)
    GetDeviceSelectorForBluetoothDeviceIdAndUuid(BluetoothDeviceId, Guid, BluetoothCacheMode)
    GetDeviceSelectorForBluetoothDeviceIdAndUuid(BluetoothDeviceId, Guid, BluetoothCacheMode)

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

    public static string GetDeviceSelectorForBluetoothDeviceIdAndUuid(BluetoothDeviceId bluetoothDeviceId, Guid serviceUuid, BluetoothCacheMode cacheMode)public static string GetDeviceSelectorForBluetoothDeviceIdAndUuid(BluetoothDeviceId bluetoothDeviceId, Guid serviceUuid, BluetoothCacheMode cacheMode)Public Static Function GetDeviceSelectorForBluetoothDeviceIdAndUuid(bluetoothDeviceId As BluetoothDeviceId, serviceUuid As Guid, cacheMode As BluetoothCacheMode) As stringpublic static string GetDeviceSelectorForBluetoothDeviceIdAndUuid(BluetoothDeviceId bluetoothDeviceId, Guid serviceUuid, BluetoothCacheMode cacheMode)

    Parameters

    Returns

    • string
      string
      string
      string

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

  • GetDeviceSelectorFromShortId(UInt16)
    GetDeviceSelectorFromShortId(UInt16)
    GetDeviceSelectorFromShortId(UInt16)
    GetDeviceSelectorFromShortId(UInt16)

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

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

    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(String) method, in order to retrieve a GATT service instance path

  • GetDeviceSelectorFromUuid(Guid)
    GetDeviceSelectorFromUuid(Guid)
    GetDeviceSelectorFromUuid(Guid)
    GetDeviceSelectorFromUuid(Guid)

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

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

    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(String) method, in order to retrieve a GATT service instance path.

  • GetIncludedServices(Guid)
    GetIncludedServices(Guid)
    GetIncludedServices(Guid)
    GetIncludedServices(Guid)

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

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

    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 )public IAsyncOperation<GattDeviceServicesResult> GetIncludedServicesAsync()

    Returns

    • An asynchronous operation that completes with a GattDeviceServicesResult object.

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

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

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

    Parameters

    Returns

    • An asynchronous operation that completes with a GattDeviceServicesResult object.

  • GetIncludedServicesForUuidAsync(Guid)
    GetIncludedServicesForUuidAsync(Guid)
    GetIncludedServicesForUuidAsync(Guid)
    GetIncludedServicesForUuidAsync(Guid)

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

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

    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(Guid, BluetoothCacheMode)
    GetIncludedServicesForUuidAsync(Guid, BluetoothCacheMode)
    GetIncludedServicesForUuidAsync(Guid, BluetoothCacheMode)
    GetIncludedServicesForUuidAsync(Guid, BluetoothCacheMode)

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

    public IAsyncOperation<GattDeviceServicesResult> GetIncludedServicesForUuidAsync(Guid serviceUuid, BluetoothCacheMode cacheMode)public IAsyncOperation<GattDeviceServicesResult> GetIncludedServicesForUuidAsync(Guid serviceUuid, BluetoothCacheMode cacheMode)Public Function GetIncludedServicesForUuidAsync(serviceUuid As Guid, cacheMode As BluetoothCacheMode) As IAsyncOperation( Of GattDeviceServicesResult )public IAsyncOperation<GattDeviceServicesResult> GetIncludedServicesForUuidAsync(Guid serviceUuid, BluetoothCacheMode cacheMode)

    Parameters

    Returns

    • An asynchronous operation that completes with a GattDeviceServicesResult object.

  • OpenAsync(GattSharingMode)
    OpenAsync(GattSharingMode)
    OpenAsync(GattSharingMode)
    OpenAsync(GattSharingMode)

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

    public IAsyncOperation<GattOpenStatus> OpenAsync(GattSharingMode sharingMode)public IAsyncOperation<GattOpenStatus> OpenAsync(GattSharingMode sharingMode)Public Function OpenAsync(sharingMode As GattSharingMode) As IAsyncOperation( Of GattOpenStatus )public IAsyncOperation<GattOpenStatus> OpenAsync(GattSharingMode sharingMode)

    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 )public IAsyncOperation<DeviceAccessStatus> RequestAccessAsync()

    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.ContractVersionAttribute
Windows.Foundation.Metadata.DualApiPartitionAttribute
Windows.Foundation.Metadata.MarshalingBehaviorAttribute
Windows.Foundation.Metadata.StaticAttribute
Windows.Foundation.Metadata.StaticAttribute
Windows.Foundation.Metadata.ThreadingAttribute

Details

Assembly

Windows.Devices.Bluetooth.GenericAttributeProfile.dll