Share via


HKCorrelation.Create Method

Definition

Overloads

Create(HKCorrelationType, NSDate, NSDate, NSSet)

[Foundation.Export("correlationWithType:startDate:endDate:objects:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static HealthKit.HKCorrelation Create(HealthKit.HKCorrelationType correlationType, Foundation.NSDate startDate, Foundation.NSDate endDate, Foundation.NSSet objects);
[<Foundation.Export("correlationWithType:startDate:endDate:objects:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member Create : HealthKit.HKCorrelationType * Foundation.NSDate * Foundation.NSDate * Foundation.NSSet -> HealthKit.HKCorrelation

Parameters

correlationType
HKCorrelationType
startDate
NSDate
endDate
NSDate
objects
NSSet

Returns

Attributes

Applies to

Create(HKCorrelationType, NSDate, NSDate, NSSet, NSDictionary)

[Foundation.Export("correlationWithType:startDate:endDate:objects:metadata:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static HealthKit.HKCorrelation Create(HealthKit.HKCorrelationType correlationType, Foundation.NSDate startDate, Foundation.NSDate endDate, Foundation.NSSet objects, Foundation.NSDictionary? metadata);
[<Foundation.Export("correlationWithType:startDate:endDate:objects:metadata:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member Create : HealthKit.HKCorrelationType * Foundation.NSDate * Foundation.NSDate * Foundation.NSSet * Foundation.NSDictionary -> HealthKit.HKCorrelation

Parameters

correlationType
HKCorrelationType
startDate
NSDate
endDate
NSDate
objects
NSSet
metadata
NSDictionary

Returns

Attributes

Applies to

Create(HKCorrelationType, NSDate, NSDate, NSSet, HKMetadata)

Creates a correlation between objects for the supplied date range.

[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static HealthKit.HKCorrelation Create(HealthKit.HKCorrelationType correlationType, Foundation.NSDate startDate, Foundation.NSDate endDate, Foundation.NSSet objects, HealthKit.HKMetadata metadata);
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member Create : HealthKit.HKCorrelationType * Foundation.NSDate * Foundation.NSDate * Foundation.NSSet * HealthKit.HKMetadata -> HealthKit.HKCorrelation

Parameters

correlationType
HKCorrelationType
startDate
NSDate
endDate
NSDate
objects
NSSet
metadata
HKMetadata

Returns

Attributes

Applies to

Create(HKCorrelationType, NSDate, NSDate, NSSet<HKSample>, HKDevice, NSDictionary<NSString,NSObject>)

[Foundation.Export("correlationWithType:startDate:endDate:objects:device:metadata:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static HealthKit.HKCorrelation Create(HealthKit.HKCorrelationType correlationType, Foundation.NSDate startDate, Foundation.NSDate endDate, Foundation.NSSet<HealthKit.HKSample> objects, HealthKit.HKDevice? device, Foundation.NSDictionary<Foundation.NSString,Foundation.NSObject>? metadata);
[<Foundation.Export("correlationWithType:startDate:endDate:objects:device:metadata:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member Create : HealthKit.HKCorrelationType * Foundation.NSDate * Foundation.NSDate * Foundation.NSSet<HealthKit.HKSample> * HealthKit.HKDevice * Foundation.NSDictionary<Foundation.NSString, Foundation.NSObject> -> HealthKit.HKCorrelation

Parameters

correlationType
HKCorrelationType
startDate
NSDate
endDate
NSDate
objects
NSSet<HKSample>
device
HKDevice

Returns

Attributes

Applies to