共用方式為


HKHealthStore.DeleteObject(HKObject, Action<Boolean,NSError>) 方法

定義

從存放區刪除 和 物件,並在刪除動作之後執行動作。

[Foundation.Export("deleteObject:withCompletion:")]
public virtual void DeleteObject (HealthKit.HKObject obj, Action<bool,Foundation.NSError> completion);
abstract member DeleteObject : HealthKit.HKObject * Action<bool, Foundation.NSError> -> unit
override this.DeleteObject : HealthKit.HKObject * Action<bool, Foundation.NSError> -> unit

參數

obj
HKObject
completion
Action<Boolean,NSError>

作業完成時要執行的處理常式。

屬性

適用於