ConverterConvert(String, Double, String, String) Method
Return the conversion of the caller's source value from the source unit
to the target unit within the specified domain.
Namespace: ConversionCalcAssembly: ConversionCalc (in ConversionCalc.dll) Version: 25.1109.1402+460980fe794ed921231d4cff278ac7c37ae486a2
public double Convert(
string domainName,
double sourceValue,
string sourceUnit,
string targetUnit
)
Public Function Convert (
domainName As String,
sourceValue As Double,
sourceUnit As String,
targetUnit As String
) As Double
No code example is currently available or this language may not be supported.
- domainName String
-
Name of the domain, or unique part of the domain name, with or without
spaces, in any case. For example,
the category "Binary Data" can be expressed as "binarydata", as
"binary", or simply as "bin".
- sourceValue Double
-
The value to be converted.
- sourceUnit String
-
The unit of measurement from which to convert the value.
- targetUnit String
-
The unit of measurement to which the value will be converted.
Double
The converted representation of the caller's value.