HKCorrelation.Create 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
| Create(HKCorrelationType, NSDate, NSDate, NSSet) | Creates a correlation between  | 
| Create(HKCorrelationType, NSDate, NSDate, NSSet, NSDictionary) | Creates a correlation between  | 
| Create(HKCorrelationType, NSDate, NSDate, NSSet, HKMetadata) | Creates a correlation between  | 
| Create(HKCorrelationType, NSDate, NSDate, NSSet<HKSample>, HKDevice, NSDictionary<NSString,NSObject>) | Creates a new HKCorrelation from the provided data. | 
Create(HKCorrelationType, NSDate, NSDate, NSSet)
Creates a correlation between objects for the supplied date range.
[Foundation.Export("correlationWithType:startDate:endDate:objects:")]
public static HealthKit.HKCorrelation Create(HealthKit.HKCorrelationType correlationType, Foundation.NSDate startDate, Foundation.NSDate endDate, Foundation.NSSet objects);static member Create : HealthKit.HKCorrelationType * Foundation.NSDate * Foundation.NSDate * Foundation.NSSet -> HealthKit.HKCorrelationParameters
- correlationType
- HKCorrelationType
- startDate
- NSDate
- endDate
- NSDate
- objects
- NSSet
Returns
- Attributes
Applies to
Create(HKCorrelationType, NSDate, NSDate, NSSet, NSDictionary)
Creates a correlation between objects for the supplied date range.
[Foundation.Export("correlationWithType:startDate:endDate:objects:metadata:")]
public static HealthKit.HKCorrelation Create(HealthKit.HKCorrelationType correlationType, Foundation.NSDate startDate, Foundation.NSDate endDate, Foundation.NSSet objects, Foundation.NSDictionary metadata);static member Create : HealthKit.HKCorrelationType * Foundation.NSDate * Foundation.NSDate * Foundation.NSSet * Foundation.NSDictionary -> HealthKit.HKCorrelationParameters
- correlationType
- HKCorrelationType
- startDate
- NSDate
- endDate
- NSDate
- objects
- NSSet
Returns
- Attributes
Applies to
Create(HKCorrelationType, NSDate, NSDate, NSSet, HKMetadata)
Creates a correlation between objects for the supplied date range.
public static HealthKit.HKCorrelation Create(HealthKit.HKCorrelationType correlationType, Foundation.NSDate startDate, Foundation.NSDate endDate, Foundation.NSSet objects, HealthKit.HKMetadata metadata);static member Create : HealthKit.HKCorrelationType * Foundation.NSDate * Foundation.NSDate * Foundation.NSSet * HealthKit.HKMetadata -> HealthKit.HKCorrelationParameters
- correlationType
- HKCorrelationType
- startDate
- NSDate
- endDate
- NSDate
- objects
- NSSet
- metadata
- HKMetadata
Returns
Applies to
Create(HKCorrelationType, NSDate, NSDate, NSSet<HKSample>, HKDevice, NSDictionary<NSString,NSObject>)
Creates a new HKCorrelation from the provided data.
[Foundation.Export("correlationWithType:startDate:endDate:objects:device:metadata:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.All, null)]
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);static member Create : HealthKit.HKCorrelationType * Foundation.NSDate * Foundation.NSDate * Foundation.NSSet<HealthKit.HKSample> * HealthKit.HKDevice * Foundation.NSDictionary<Foundation.NSString, Foundation.NSObject> -> HealthKit.HKCorrelationParameters
- correlationType
- HKCorrelationType
- startDate
- NSDate
- endDate
- NSDate
Returns
- Attributes