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