共用方式為


GattReliableWriteTransaction 類別

定義

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

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
繼承
Object Platform::Object IInspectable GattReliableWriteTransaction
屬性

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

備註

版本歷程記錄

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

建構函式

GattReliableWriteTransaction()

建立新的 GattReliableWriteTransaction 物件。

方法

CommitAsync()

依序執行所有佇列寫入,將資料寫入裝置。 一旦認可交易對象,GattReliableWriteTransaction 物件就不會再執行任何作業。

CommitWithResultAsync()

依序執行所有佇列寫入,將資料寫入裝置。 一旦認可交易對象,GattReliableWriteTransaction 物件就不會再執行任何作業。

WriteValue(GattCharacteristic, IBuffer)

將新的寫入作業加入至交易對象。

適用於