HKUnit.CreateMoleUnit 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
CreateMoleUnit(Double) |
Creates a unit for measuring quantities in moles. |
CreateMoleUnit(HKMetricPrefix, Double) |
Creates a unit for measuring quantities in moles, multiplied by the specified prefix. |
CreateMoleUnit(Double)
Creates a unit for measuring quantities in moles.
[Foundation.Export("moleUnitWithMolarMass:")]
public static HealthKit.HKUnit CreateMoleUnit (double gramsPerMole);
static member CreateMoleUnit : double -> HealthKit.HKUnit
Parameters
- gramsPerMole
- Double
Returns
- Attributes
Applies to
CreateMoleUnit(HKMetricPrefix, Double)
Creates a unit for measuring quantities in moles, multiplied by the specified prefix.
[Foundation.Export("moleUnitWithMetricPrefix:molarMass:")]
public static HealthKit.HKUnit CreateMoleUnit (HealthKit.HKMetricPrefix prefix, double gramsPerMole);
static member CreateMoleUnit : HealthKit.HKMetricPrefix * double -> HealthKit.HKUnit
Parameters
- prefix
- HKMetricPrefix
- gramsPerMole
- Double
Returns
- Attributes