AFAnalysisService.RuntimeFieldValue Explicit Conversion (AFAnalysisService.RuntimeFieldValue to Double)
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
Performs an explicit conversion from AFAnalysisServiceRuntimeFieldValue to Double.
Namespace: OSIsoft.AF.Analysis
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public static explicit operator double ( AFAnalysisServiceRuntimeFieldValue value )
Public Shared Narrowing Operator CType ( value As AFAnalysisServiceRuntimeFieldValue ) As Double Dim input As AFAnalysisServiceRuntimeFieldValue Dim output As Double output = CType(input, Double)
static explicit operator double ( AFAnalysisServiceRuntimeFieldValue^ value )
Parameters
- value
- Type: OSIsoft.AF.AnalysisAFAnalysisServiceRuntimeFieldValue
A AFAnalysisServiceRuntimeFieldValue to convert into a Double.
Return Value
Type: DoubleReturns a Double representation of value. If the underlying value cannot be converted, ArgumentException is thrown.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentException |