Windows.Devices.Bluetooth.GenericAttributeProfile 命名空間

Windows.Devices.Bluetooth.GenericAttributeProfile 命名空間會定義 UWP 應用程式或傳統型應用程式可用來與藍牙 LE 裝置通訊的 Windows 執行階段 類別。

如需背景資訊,請參閱 藍牙。 如需原始程式碼,請參閱 藍牙低能源範例

類別

GattCharacteristic

表示 GATT 服務的特性。 GattCharacteristic 物件代表特定服務的 GATT 特性,並從 GattDeviceService 物件的 Characteristics 屬性取得。

GattCharacteristicsResult

包含 GetCharacteristicsForUuidAsyncGetCharacteristicsAsync 的結果

GattCharacteristicUuids

代表最已知特性 UUID 值的列舉,並提供使用 GATT 特性 UUID 的便利方法,以及提供通用 GATT 特性特性 UUID 的靜態屬性。

GattClientNotificationResult

NotifyValueAsync 的結果

GattDescriptor

表示 GATT 特性的描述項。 GattDescriptor 物件代表特定特性的 GATT 描述元,並從 GattCharacteristic 物件的 Descriptors 屬性取得。

GattDescriptorsResult

描述項作業的結果,例如 GattCharacteristic.GetDescriptorsAsync

GattDescriptorUuids

表示已知描述元 UUID 值的列舉,並提供使用 GATT 描述元 UUID 的便利方法,以及提供通用 GATT 描述元描述元 UUID 的靜態屬性。

GattDeviceService

代表藍牙裝置上的 GATT 主要服務。 GattDeviceService 類別代表藍牙 LE 裝置上的 GATT 服務。 它會使用裝置服務實例路徑具現化,方法是使用 Windows.Devices.Enumeration API 尋找裝置來取得。

GattDeviceServicesResult

GetIncludedServicesForUuidAsyncGetIncludedServicesForUuidAsync 的狀態

GattLocalCharacteristic

這個類別代表區域特性。

GattLocalCharacteristicParameters

這個類別包含區域特性描述元參數。

GattLocalCharacteristicResult

CreateCharacteristicAsync 的結果。

GattLocalDescriptor

這個類別會定義區域特性的描述元。

GattLocalDescriptorParameters

這個類別會定義描述項的參數。

GattLocalDescriptorResult

本機特性描述項作業的結果,例如 CreateDescriptorAsync

GattLocalService

這個類別代表 GATT 本機服務。

GattPresentationFormat

表示單一簡報格式 GATT 描述元的值。

GattPresentationFormatTypes

代表 GattPresentationFormat.FormatType 屬性可以採用的不同已知值。

GattProtocolError

這個類別包含 GATT 通訊協定錯誤的位元元組值。

GattReadClientCharacteristicConfigurationDescriptorResult

表示讀取 GATT 用戶端特性設定ClientDescriptor 值的結果。

GattReadRequest

這個類別代表藍牙 GATT 讀取要求。

GattReadRequestedEventArgs

這個類別包含 StateChanged 事件的自變數。

GattReadResult

表示 GATT 特性或描述元值的異步讀取作業結果。

GattReliableWriteTransaction

以交易寫入作業的形式,在藍牙 LE 裝置上執行 GATT 可靠寫入。

GattRequestStateChangedEventArgs

這個類別會定義 StateChanged 的自變數。

GattServiceProvider

這個類別可用來公告 GATT 服務。

GattServiceProviderAdvertisementStatusChangedEventArgs

GattServiceProvider 的事件自變數。

GattServiceProviderAdvertisingParameters

這個類別可用來定義 GATT 服務公告參數。

GattServiceProviderResult

這個類別是 CreateAsync 作業的結果。

GattServiceUuids

表示最已知服務 UUID 值的列舉,並提供使用 GATT 服務 UUID 的便利方法,以及為通用 GATT 服務提供服務 UUID 的靜態屬性。 若要檢視所有藍牙 SIG 定義服務 UUID 的清單,請參閱 藍牙 SIG 定義服務 UUID

注意

針對 GattServiceUuids 沒有具名屬性的 UUID,您可以使用 BluetoothUuidHelper.FromShortId

GattSession

表示 GATT) 工作階段 (泛型屬性配置檔。

GattSessionStatusChangedEventArgs

這個類別代表 SessionStatusChanged 事件自變數。

GattSubscribedClient

這個類別代表 GATT 會話的訂閱用戶端。

GattValueChangedEventArgs

代表 GattCharacteristic.ValueChanged 事件處理程式收到的自變數,這些自變數用來處理藍牙 LE 裝置所傳送的特性值變更通知和指示事件。

GattWriteRequest

這個類別代表 GATT 寫入要求。

GattWriteRequestedEventArgs

這個類別代表 WriteRequested 的事件自變數。

GattWriteResult

包含 GATT 寫入作業的結果,例如 WriteValueWithResultAsync

列舉

GattCharacteristicProperties

指定 GATT 特性屬性以及 GATT 擴充特性屬性描述元的值。

提供代表 GATT 特性屬性的旗標集合,如果 GATT 擴充屬性描述元存在特性的 GATT 擴充特性屬性,

表示 GATT 特性屬性,如 GATT 設定檔所定義,如果 ExtendedProperties 旗標存在,它也會代表擴充特性屬性描述元的屬性。

GattClientCharacteristicConfigurationDescriptorValue

表示 GATT ClientCharacteristicConfigurationDescriptor 的值。

指出用戶端特性設定描述項的狀態。

GattCommunicationStatus

表示 WinRT GATT API 相關 Async 作業的傳回狀態。

指出異步操作的狀態。

GattOpenStatus

GattDeviceService.OpenAsync 的狀態。

GattProtectionLevel

表示所需的安全性層級。

允許要求所需的 [安全性] 選項。

GattRequestState

這個列舉會定義 GATT 要求狀態。

GattServiceProviderAdvertisementStatus

此列舉定義 GattServiceProvider 的公告狀態。

GattSessionStatus

此列舉定義 GattSession 狀態。

GattSharingMode

這個列舉表示 GATT 共用模式。

GattWriteOption

指出要執行的寫入作業類型。

另請參閱