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