CBPeripheral.WriteValue 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
WriteValue(NSData, CBDescriptor) |
|
WriteValue(NSData, CBCharacteristic, CBCharacteristicWriteType) |
寫入 |
WriteValue(NSData, CBDescriptor)
data
寫入指定的 descriptor
所識別的特性。
[Foundation.Export("writeValue:forDescriptor:")]
public virtual void WriteValue (Foundation.NSData data, CoreBluetooth.CBDescriptor descriptor);
abstract member WriteValue : Foundation.NSData * CoreBluetooth.CBDescriptor -> unit
override this.WriteValue : Foundation.NSData * CoreBluetooth.CBDescriptor -> unit
參數
- data
- NSData
- descriptor
- CBDescriptor
- 屬性
適用於
WriteValue(NSData, CBCharacteristic, CBCharacteristicWriteType)
寫入 data
指定 descriptor
之 所識別的特性,其中包含或不含回應。
[Foundation.Export("writeValue:forCharacteristic:type:")]
public virtual void WriteValue (Foundation.NSData data, CoreBluetooth.CBCharacteristic characteristic, CoreBluetooth.CBCharacteristicWriteType type);
abstract member WriteValue : Foundation.NSData * CoreBluetooth.CBCharacteristic * CoreBluetooth.CBCharacteristicWriteType -> unit
override this.WriteValue : Foundation.NSData * CoreBluetooth.CBCharacteristic * CoreBluetooth.CBCharacteristicWriteType -> unit
參數
- data
- NSData
- characteristic
- CBCharacteristic
- 屬性