Share via


GattLocalCharacteristic 類別

定義

這個類別代表本機特性。

public ref class GattLocalCharacteristic sealed
/// [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 GattLocalCharacteristic final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 262144)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class GattLocalCharacteristic final
[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 GattLocalCharacteristic
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 262144)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class GattLocalCharacteristic
Public NotInheritable Class GattLocalCharacteristic
繼承
Object Platform::Object IInspectable GattLocalCharacteristic
屬性

Windows 需求

裝置系列
Windows 10 Creators Update (已於 10.0.15063.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v4.0 引進)
應用程式功能
bluetooth

備註

另請參閱 將通知傳送給已訂閱的用戶端

屬性

CharacteristicProperties

取得本機特性屬性。

Descriptors

取得這個區域特性之所有描述項的向量清單。

PresentationFormats

取得這個本機特性的呈現格式。

ReadProtectionLevel

取得這個本機特性的讀取保護層級。

StaticValue

取得這個本機 GATT 特性的靜態值。

SubscribedClients

取得訂閱此本機特性之所有用戶端的向量清單。

UserDescription

取得這個本機特性的使用者易記描述。

Uuid

取得這個本機特性的藍牙SIG 定義 UUID。

WriteProtectionLevel

取得這個本機特性的寫入保護層級。

方法

CreateDescriptorAsync(Guid, GattLocalDescriptorParameters)

建立這個區域特性的描述項。

NotifyValueAsync(IBuffer)

傳送並通知所有已訂閱的用戶端 GattSubscribedClient 值。

NotifyValueAsync(IBuffer, GattSubscribedClient)

傳送並通知 GattSubscribedClient 的值。

事件

ReadRequested

GATT 用戶端要求讀取作業時所觸發的事件。

SubscribedClientsChanged

當訂閱此本機特性的用戶端集合變更 (,也就是用戶端加入或移除該集合) 時所引發的事件。

WriteRequested

這是要求寫入時所觸發的事件。

適用於

另請參閱