HKHealthStore.DeleteObjects Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
DeleteObjects(HKObject[], Action<Boolean,NSError>) |
Deletes the specified |
DeleteObjects(HKObjectType, NSPredicate, Action<Boolean,nuint,NSError>) |
Deletes the objects that match the specified |
DeleteObjects(HKObject[], Action<Boolean,NSError>)
Deletes the specified objects
from the store and runs a completion handler when it is finished.
[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
Parameters
- objects
- HKObject[]
- Attributes
Applies to
DeleteObjects(HKObjectType, NSPredicate, Action<Boolean,nuint,NSError>)
Deletes the objects that match the specified objectType
and predicate
from the store and runs a completion handler when it is finished.
[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
Parameters
- objectType
- HKObjectType
- predicate
- NSPredicate
A handler to run when the operation completes.
- Attributes