HKQuantitySeriesSampleBuilder.Insert(HKQuantity, NSDate, NSError) 方法

定义

在指定时间插入数量。

[Foundation.Export("insertQuantity:date:error:")]
public virtual bool Insert (HealthKit.HKQuantity quantity, Foundation.NSDate date, out Foundation.NSError error);
abstract member Insert : HealthKit.HKQuantity * Foundation.NSDate *  -> bool
override this.Insert : HealthKit.HKQuantity * Foundation.NSDate *  -> bool

参数

quantity
HKQuantity

要插入的数量数据。

date
NSDate

插入数据的时间。

error
NSError

用于存储发生的任何错误的位置。

返回

true 如果未发生错误,则为 。 否则为 false

属性

适用于