Bagikan melalui


GattReliableWriteTransaction Kelas

Definisi

Melakukan penulisan andal GATT pada perangkat BLUETOOTH LE, dalam bentuk operasi penulisan transaksi.

public ref class GattReliableWriteTransaction sealed
/// [Windows.Foundation.Metadata.Activatable(65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class GattReliableWriteTransaction final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class GattReliableWriteTransaction final
[Windows.Foundation.Metadata.Activatable(65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class GattReliableWriteTransaction
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class GattReliableWriteTransaction
function GattReliableWriteTransaction()
Public NotInheritable Class GattReliableWriteTransaction
Warisan
Object Platform::Object IInspectable GattReliableWriteTransaction
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

Riwayat versi

Versi Windows Versi SDK Nilai ditambahkan
1703 15063 CommitWithResultAsync

Konstruktor

GattReliableWriteTransaction()

Membuat objek GattReliableWriteTransaction baru.

Metode

CommitAsync()

Melakukan semua penulisan antrean, secara berurutan, menulis data ke perangkat. Setelah objek transaksi dilakukan, tidak ada operasi lebih lanjut yang dimungkinkan pada objek GattReliableWriteTransaction.

CommitWithResultAsync()

Melakukan semua penulisan antrean, secara berurutan, menulis data ke perangkat. Setelah objek transaksi dilakukan, tidak ada operasi lebih lanjut yang dimungkinkan pada objek GattReliableWriteTransaction.

WriteValue(GattCharacteristic, IBuffer)

Menambahkan operasi tulis baru ke objek transaksi.

Berlaku untuk