Bagikan melalui


GattReadResult Kelas

Definisi

Mewakili hasil operasi baca asinkron dari nilai Karakteristik atau Deskriptor 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
Warisan
Object Platform::Object IInspectable GattReadResult
Atribut

Persyaratan Windows

Rangkaian perangkat
Windows 10 (diperkenalkan dalam 10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (diperkenalkan dalam v1.0)
Kemampuan aplikasi
bluetooth

Keterangan

Salah satu metode ReadValueAsync digunakan untuk mengambil objek GattReadResult.

Properti Status pada GattReadResult yang dikembalikan menunjukkan apakah hasil operasi berhasil.

Riwayat versi

Versi Windows Versi SDK Nilai ditambahkan
1703 15063 ProtocolError

Properti

ProtocolError

Mendapatkan kesalahan protokol.

Status

Mendapatkan status operasi asinkron.

Value

Mendapatkan nilai yang dibaca dari perangkat.

Berlaku untuk

Lihat juga