Struct VolumeConcentration
- Namespace
- UnitsNet
- Assembly
- UnitsNet.VolumeConcentration.dll
The volume concentration (not to be confused with volume fraction) is defined as the volume of a constituent divided by the total volume of the mixture.
public struct VolumeConcentration
Remarks
Constructors
VolumeConcentration(double, VolumeConcentrationUnit)
Creates the quantity with the given numeric value and unit.
public VolumeConcentration(double value, VolumeConcentrationUnit unit)
Parameters
value
doubleThe numeric value to construct this quantity with.
unit
VolumeConcentrationUnitThe unit representation to construct this quantity with.
Exceptions
- ArgumentException
If value is NaN or Infinity.
Properties
BaseUnit
The base unit of VolumeConcentration, which is Second. All conversions go via this value.
public static VolumeConcentrationUnit BaseUnit { get; }
Property Value
CentilitersPerLiter
Gets a double value of this quantity converted into CentilitersPerLiter
public double CentilitersPerLiter { get; }
Property Value
CentilitersPerMililiter
Gets a double value of this quantity converted into CentilitersPerMililiter
public double CentilitersPerMililiter { get; }
Property Value
DecilitersPerLiter
Gets a double value of this quantity converted into DecilitersPerLiter
public double DecilitersPerLiter { get; }
Property Value
DecilitersPerMililiter
Gets a double value of this quantity converted into DecilitersPerMililiter
public double DecilitersPerMililiter { get; }
Property Value
DecimalFractions
Gets a double value of this quantity converted into DecimalFraction
public double DecimalFractions { get; }
Property Value
LitersPerLiter
Gets a double value of this quantity converted into LitersPerLiter
public double LitersPerLiter { get; }
Property Value
LitersPerMililiter
Gets a double value of this quantity converted into LitersPerMililiter
public double LitersPerMililiter { get; }
Property Value
MaxValue
Represents the largest possible value of VolumeConcentration.
public static VolumeConcentration MaxValue { get; }
Property Value
MicrolitersPerLiter
Gets a double value of this quantity converted into MicrolitersPerLiter
public double MicrolitersPerLiter { get; }
Property Value
MicrolitersPerMililiter
Gets a double value of this quantity converted into MicrolitersPerMililiter
public double MicrolitersPerMililiter { get; }
Property Value
MillilitersPerLiter
Gets a double value of this quantity converted into MillilitersPerLiter
public double MillilitersPerLiter { get; }
Property Value
MillilitersPerMililiter
Gets a double value of this quantity converted into MillilitersPerMililiter
public double MillilitersPerMililiter { get; }
Property Value
MinValue
Represents the smallest possible value of VolumeConcentration.
public static VolumeConcentration MinValue { get; }
Property Value
NanolitersPerLiter
Gets a double value of this quantity converted into NanolitersPerLiter
public double NanolitersPerLiter { get; }
Property Value
NanolitersPerMililiter
Gets a double value of this quantity converted into NanolitersPerMililiter
public double NanolitersPerMililiter { get; }
Property Value
PartsPerBillion
Gets a double value of this quantity converted into PartPerBillion
public double PartsPerBillion { get; }
Property Value
PartsPerMillion
Gets a double value of this quantity converted into PartPerMillion
public double PartsPerMillion { get; }
Property Value
PartsPerThousand
Gets a double value of this quantity converted into PartPerThousand
public double PartsPerThousand { get; }
Property Value
PartsPerTrillion
Gets a double value of this quantity converted into PartPerTrillion
public double PartsPerTrillion { get; }
Property Value
Percent
public double Percent { get; }
Property Value
PicolitersPerLiter
Gets a double value of this quantity converted into PicolitersPerLiter
public double PicolitersPerLiter { get; }
Property Value
PicolitersPerMililiter
Gets a double value of this quantity converted into PicolitersPerMililiter
public double PicolitersPerMililiter { get; }
Property Value
Unit
public VolumeConcentrationUnit Unit { get; }
Property Value
Value
The numeric value this quantity was constructed with.
public double Value { get; }
Property Value
Zero
Gets an instance of this quantity with a value of 0 in the base unit Second.
public static VolumeConcentration Zero { get; }
Property Value
Methods
As(VolumeConcentrationUnit)
Convert to the unit representation unit
.
public double As(VolumeConcentrationUnit unit)
Parameters
Returns
- double
Value converted to the specified unit.
From(double, VolumeConcentrationUnit)
Dynamically convert from value and unit enum VolumeConcentrationUnit to VolumeConcentration.
public static VolumeConcentration From(double value, VolumeConcentrationUnit fromUnit)
Parameters
value
doubleValue to convert from.
fromUnit
VolumeConcentrationUnitUnit to convert from.
Returns
- VolumeConcentration
VolumeConcentration unit value.
FromCentilitersPerLiter(double)
Creates a VolumeConcentration from CentilitersPerLiter.
public static VolumeConcentration FromCentilitersPerLiter(double centilitersperliter)
Parameters
centilitersperliter
double
Returns
Exceptions
- ArgumentException
If value is NaN or Infinity.
FromCentilitersPerMililiter(double)
Creates a VolumeConcentration from CentilitersPerMililiter.
public static VolumeConcentration FromCentilitersPerMililiter(double centiliterspermililiter)
Parameters
centiliterspermililiter
double
Returns
Exceptions
- ArgumentException
If value is NaN or Infinity.
FromDecilitersPerLiter(double)
Creates a VolumeConcentration from DecilitersPerLiter.
public static VolumeConcentration FromDecilitersPerLiter(double decilitersperliter)
Parameters
decilitersperliter
double
Returns
Exceptions
- ArgumentException
If value is NaN or Infinity.
FromDecilitersPerMililiter(double)
Creates a VolumeConcentration from DecilitersPerMililiter.
public static VolumeConcentration FromDecilitersPerMililiter(double deciliterspermililiter)
Parameters
deciliterspermililiter
double
Returns
Exceptions
- ArgumentException
If value is NaN or Infinity.
FromDecimalFractions(double)
Creates a VolumeConcentration from DecimalFraction.
public static VolumeConcentration FromDecimalFractions(double decimalfractions)
Parameters
decimalfractions
double
Returns
Exceptions
- ArgumentException
If value is NaN or Infinity.
FromLitersPerLiter(double)
Creates a VolumeConcentration from LitersPerLiter.
public static VolumeConcentration FromLitersPerLiter(double litersperliter)
Parameters
litersperliter
double
Returns
Exceptions
- ArgumentException
If value is NaN or Infinity.
FromLitersPerMililiter(double)
Creates a VolumeConcentration from LitersPerMililiter.
public static VolumeConcentration FromLitersPerMililiter(double literspermililiter)
Parameters
literspermililiter
double
Returns
Exceptions
- ArgumentException
If value is NaN or Infinity.
FromMicrolitersPerLiter(double)
Creates a VolumeConcentration from MicrolitersPerLiter.
public static VolumeConcentration FromMicrolitersPerLiter(double microlitersperliter)
Parameters
microlitersperliter
double
Returns
Exceptions
- ArgumentException
If value is NaN or Infinity.
FromMicrolitersPerMililiter(double)
Creates a VolumeConcentration from MicrolitersPerMililiter.
public static VolumeConcentration FromMicrolitersPerMililiter(double microliterspermililiter)
Parameters
microliterspermililiter
double
Returns
Exceptions
- ArgumentException
If value is NaN or Infinity.
FromMillilitersPerLiter(double)
Creates a VolumeConcentration from MillilitersPerLiter.
public static VolumeConcentration FromMillilitersPerLiter(double millilitersperliter)
Parameters
millilitersperliter
double
Returns
Exceptions
- ArgumentException
If value is NaN or Infinity.
FromMillilitersPerMililiter(double)
Creates a VolumeConcentration from MillilitersPerMililiter.
public static VolumeConcentration FromMillilitersPerMililiter(double milliliterspermililiter)
Parameters
milliliterspermililiter
double
Returns
Exceptions
- ArgumentException
If value is NaN or Infinity.
FromNanolitersPerLiter(double)
Creates a VolumeConcentration from NanolitersPerLiter.
public static VolumeConcentration FromNanolitersPerLiter(double nanolitersperliter)
Parameters
nanolitersperliter
double
Returns
Exceptions
- ArgumentException
If value is NaN or Infinity.
FromNanolitersPerMililiter(double)
Creates a VolumeConcentration from NanolitersPerMililiter.
public static VolumeConcentration FromNanolitersPerMililiter(double nanoliterspermililiter)
Parameters
nanoliterspermililiter
double
Returns
Exceptions
- ArgumentException
If value is NaN or Infinity.
FromPartsPerBillion(double)
Creates a VolumeConcentration from PartPerBillion.
public static VolumeConcentration FromPartsPerBillion(double partsperbillion)
Parameters
partsperbillion
double
Returns
Exceptions
- ArgumentException
If value is NaN or Infinity.
FromPartsPerMillion(double)
Creates a VolumeConcentration from PartPerMillion.
public static VolumeConcentration FromPartsPerMillion(double partspermillion)
Parameters
partspermillion
double
Returns
Exceptions
- ArgumentException
If value is NaN or Infinity.
FromPartsPerThousand(double)
Creates a VolumeConcentration from PartPerThousand.
public static VolumeConcentration FromPartsPerThousand(double partsperthousand)
Parameters
partsperthousand
double
Returns
Exceptions
- ArgumentException
If value is NaN or Infinity.
FromPartsPerTrillion(double)
Creates a VolumeConcentration from PartPerTrillion.
public static VolumeConcentration FromPartsPerTrillion(double partspertrillion)
Parameters
partspertrillion
double
Returns
Exceptions
- ArgumentException
If value is NaN or Infinity.
FromPercent(double)
Creates a VolumeConcentration from Percent.
public static VolumeConcentration FromPercent(double percent)
Parameters
percent
double
Returns
Exceptions
- ArgumentException
If value is NaN or Infinity.
FromPicolitersPerLiter(double)
Creates a VolumeConcentration from PicolitersPerLiter.
public static VolumeConcentration FromPicolitersPerLiter(double picolitersperliter)
Parameters
picolitersperliter
double
Returns
Exceptions
- ArgumentException
If value is NaN or Infinity.
FromPicolitersPerMililiter(double)
Creates a VolumeConcentration from PicolitersPerMililiter.
public static VolumeConcentration FromPicolitersPerMililiter(double picoliterspermililiter)
Parameters
picoliterspermililiter
double
Returns
Exceptions
- ArgumentException
If value is NaN or Infinity.
ToUnit(VolumeConcentrationUnit)
Converts this VolumeConcentration to another VolumeConcentration with the unit representation unit
.
public VolumeConcentration ToUnit(VolumeConcentrationUnit unit)
Parameters
Returns
- VolumeConcentration
A VolumeConcentration with the specified unit.