Table of Contents

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 double

The numeric value to construct this quantity with.

unit ElectricPotentialDcUnit

The 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

ElectricPotentialDcUnit

KilovoltsDc

Gets a double value of this quantity converted into KilovoltDc

public double KilovoltsDc { get; }

Property Value

double

MaxValue

Represents the largest possible value of ElectricPotentialDc.

public static ElectricPotentialDc MaxValue { get; }

Property Value

ElectricPotentialDc

MegavoltsDc

Gets a double value of this quantity converted into MegavoltDc

public double MegavoltsDc { get; }

Property Value

double

MicrovoltsDc

Gets a double value of this quantity converted into MicrovoltDc

public double MicrovoltsDc { get; }

Property Value

double

MillivoltsDc

Gets a double value of this quantity converted into MillivoltDc

public double MillivoltsDc { get; }

Property Value

double

MinValue

Represents the smallest possible value of ElectricPotentialDc.

public static ElectricPotentialDc MinValue { get; }

Property Value

ElectricPotentialDc

Unit

public ElectricPotentialDcUnit Unit { get; }

Property Value

ElectricPotentialDcUnit

Value

The numeric value this quantity was constructed with.

public double Value { get; }

Property Value

double

VoltsDc

Gets a double value of this quantity converted into VoltDc

public double VoltsDc { get; }

Property Value

double

Zero

Gets an instance of this quantity with a value of 0 in the base unit Second.

public static ElectricPotentialDc Zero { get; }

Property Value

ElectricPotentialDc

Methods

As(ElectricPotentialDcUnit)

Convert to the unit representation unit.

public double As(ElectricPotentialDcUnit unit)

Parameters

unit ElectricPotentialDcUnit

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 double

Value to convert from.

fromUnit ElectricPotentialDcUnit

Unit to convert from.

Returns

ElectricPotentialDc

ElectricPotentialDc unit value.

FromKilovoltsDc(double)

public static ElectricPotentialDc FromKilovoltsDc(double kilovoltsdc)

Parameters

kilovoltsdc double

Returns

ElectricPotentialDc

Exceptions

ArgumentException

If value is NaN or Infinity.

FromMegavoltsDc(double)

public static ElectricPotentialDc FromMegavoltsDc(double megavoltsdc)

Parameters

megavoltsdc double

Returns

ElectricPotentialDc

Exceptions

ArgumentException

If value is NaN or Infinity.

FromMicrovoltsDc(double)

public static ElectricPotentialDc FromMicrovoltsDc(double microvoltsdc)

Parameters

microvoltsdc double

Returns

ElectricPotentialDc

Exceptions

ArgumentException

If value is NaN or Infinity.

FromMillivoltsDc(double)

public static ElectricPotentialDc FromMillivoltsDc(double millivoltsdc)

Parameters

millivoltsdc double

Returns

ElectricPotentialDc

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

ElectricPotentialDc

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

unit ElectricPotentialDcUnit

Returns

ElectricPotentialDc

A ElectricPotentialDc with the specified unit.