Struct ElectricPotentialDc
- Namespace
- UnitsNet
- Assembly
- UnitsNet.ElectricPotentialDc.dll
The Electric Potential of a system known to use Direct Current.
public struct ElectricPotentialDc
Constructors
ElectricPotentialDc(double, ElectricPotentialDcUnit)
Creates the quantity with the given numeric value and unit.
public ElectricPotentialDc(double value, ElectricPotentialDcUnit unit)
Parameters
value
doubleThe numeric value to construct this quantity with.
unit
ElectricPotentialDcUnitThe unit representation to construct this quantity with.
Exceptions
- ArgumentException
If value is NaN or Infinity.
Properties
BaseUnit
The base unit of ElectricPotentialDc, which is Second. All conversions go via this value.
public static ElectricPotentialDcUnit BaseUnit { get; }
Property Value
KilovoltsDc
Gets a double value of this quantity converted into KilovoltDc
public double KilovoltsDc { get; }
Property Value
MaxValue
Represents the largest possible value of ElectricPotentialDc.
public static ElectricPotentialDc MaxValue { get; }
Property Value
MegavoltsDc
Gets a double value of this quantity converted into MegavoltDc
public double MegavoltsDc { get; }
Property Value
MicrovoltsDc
Gets a double value of this quantity converted into MicrovoltDc
public double MicrovoltsDc { get; }
Property Value
MillivoltsDc
Gets a double value of this quantity converted into MillivoltDc
public double MillivoltsDc { get; }
Property Value
MinValue
Represents the smallest possible value of ElectricPotentialDc.
public static ElectricPotentialDc MinValue { get; }
Property Value
Unit
public ElectricPotentialDcUnit Unit { get; }
Property Value
Value
The numeric value this quantity was constructed with.
public double Value { get; }
Property Value
VoltsDc
public double VoltsDc { get; }
Property Value
Zero
Gets an instance of this quantity with a value of 0 in the base unit Second.
public static ElectricPotentialDc Zero { get; }
Property Value
Methods
As(ElectricPotentialDcUnit)
Convert to the unit representation unit
.
public double As(ElectricPotentialDcUnit unit)
Parameters
Returns
- double
Value converted to the specified unit.
From(double, ElectricPotentialDcUnit)
Dynamically convert from value and unit enum ElectricPotentialDcUnit to ElectricPotentialDc.
public static ElectricPotentialDc From(double value, ElectricPotentialDcUnit fromUnit)
Parameters
value
doubleValue to convert from.
fromUnit
ElectricPotentialDcUnitUnit to convert from.
Returns
- ElectricPotentialDc
ElectricPotentialDc unit value.
FromKilovoltsDc(double)
Creates a ElectricPotentialDc from KilovoltDc.
public static ElectricPotentialDc FromKilovoltsDc(double kilovoltsdc)
Parameters
kilovoltsdc
double
Returns
Exceptions
- ArgumentException
If value is NaN or Infinity.
FromMegavoltsDc(double)
Creates a ElectricPotentialDc from MegavoltDc.
public static ElectricPotentialDc FromMegavoltsDc(double megavoltsdc)
Parameters
megavoltsdc
double
Returns
Exceptions
- ArgumentException
If value is NaN or Infinity.
FromMicrovoltsDc(double)
Creates a ElectricPotentialDc from MicrovoltDc.
public static ElectricPotentialDc FromMicrovoltsDc(double microvoltsdc)
Parameters
microvoltsdc
double
Returns
Exceptions
- ArgumentException
If value is NaN or Infinity.
FromMillivoltsDc(double)
Creates a ElectricPotentialDc from MillivoltDc.
public static ElectricPotentialDc FromMillivoltsDc(double millivoltsdc)
Parameters
millivoltsdc
double
Returns
Exceptions
- ArgumentException
If value is NaN or Infinity.
FromVoltsDc(double)
Creates a ElectricPotentialDc from VoltDc.
public static ElectricPotentialDc FromVoltsDc(double voltsdc)
Parameters
voltsdc
double
Returns
Exceptions
- ArgumentException
If value is NaN or Infinity.
ToUnit(ElectricPotentialDcUnit)
Converts this ElectricPotentialDc to another ElectricPotentialDc with the unit representation unit
.
public ElectricPotentialDc ToUnit(ElectricPotentialDcUnit unit)
Parameters
Returns
- ElectricPotentialDc
A ElectricPotentialDc with the specified unit.