Click or drag to resize

DataValueCreate Method

Returns a non-null DataValue object with the specified configuration.

Namespace: DegreeDays.Api.Data
Assembly: DegreeDays (in DegreeDays.dll) Version: 1.4
Syntax
public static DataValue Create(
	double value,
	double percentageEstimated
)

Parameters

value  Double
Indicating the value to be held by the returned object (i.e. the degree days).
percentageEstimated  Double
A number, greater than or equal to zero and less than or equal to 100, indicating the extent to which the value is based on estimated data.

Return Value

DataValue
A non-null DataValue object with the specified configuration.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionvalue is infinity, or if percentageEstimated is less than 0 or greater than 100. At the moment an ArgumentOutOfRangeException will also be thrown if value is less than zero (since degree-day values are always zero or greater), but this may change in the future if this class is used for other types of data.
ArgumentExceptionvalue or percentageEstimated is NaN.
See Also