共用方式為


GattReadResult 類別

定義

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

public ref class GattReadResult sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class GattReadResult final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class GattReadResult final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class GattReadResult
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class GattReadResult
Public NotInheritable Class GattReadResult
繼承
Object Platform::Object IInspectable GattReadResult
屬性

Windows 需求

裝置系列
Windows 10 (已於 10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v1.0 引進)
應用程式功能
bluetooth

備註

其中一個 ReadValueAsync 方法可用來擷取 GattReadResult 物件。

傳回 GattReadResult 上的 Status 屬性工作表示作業的結果是否成功。

版本歷程記錄

Windows 版本 SDK 版本 已新增值
1703 15063 ProtocolError

屬性

ProtocolError

取得通訊協定錯誤。

Status

取得非同步作業的狀態。

Value

取得從裝置讀取的值。

適用於

另請參閱