HKHealthStore.DeleteObjects 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
DeleteObjects(HKObject[], Action<Boolean,NSError>) |
从存储区中删除指定的 |
DeleteObjects(HKObjectType, NSPredicate, Action<Boolean,nuint,NSError>) |
从存储区中删除与指定的 |
DeleteObjects(HKObject[], Action<Boolean,NSError>)
从存储区中删除指定的 objects
,并在完成后运行完成处理程序。
[Foundation.Export("deleteObjects:withCompletion:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual void DeleteObjects (HealthKit.HKObject[] objects, Action<bool,Foundation.NSError> completion);
abstract member DeleteObjects : HealthKit.HKObject[] * Action<bool, Foundation.NSError> -> unit
override this.DeleteObjects : HealthKit.HKObject[] * Action<bool, Foundation.NSError> -> unit
参数
- objects
- HKObject[]
- 属性
适用于
DeleteObjects(HKObjectType, NSPredicate, Action<Boolean,nuint,NSError>)
从存储区中删除与指定的 objectType
和 predicate
匹配的对象,并在完成后运行完成处理程序。
[Foundation.Export("deleteObjectsOfType:predicate:withCompletion:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual void DeleteObjects (HealthKit.HKObjectType objectType, Foundation.NSPredicate predicate, Action<bool,nuint,Foundation.NSError> completion);
abstract member DeleteObjects : HealthKit.HKObjectType * Foundation.NSPredicate * Action<bool, nuint, Foundation.NSError> -> unit
override this.DeleteObjects : HealthKit.HKObjectType * Foundation.NSPredicate * Action<bool, nuint, Foundation.NSError> -> unit
参数
- objectType
- HKObjectType
- predicate
- NSPredicate
操作完成时要运行的处理程序。
- 属性