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)

将新的写入操作添加到事务对象。

适用于