AFEnumerationValue Constructor
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
Dynamically create an AFEnumerationValue that is not associated
with an AFEnumerationSet or a PISystem.
Namespace: OSIsoft.AF.Asset
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public AFEnumerationValue( string name, int value )
Public Sub New ( name As String, value As Integer ) Dim name As String Dim value As Integer Dim instance As New AFEnumerationValue(name, value)
public: AFEnumerationValue( String^ name, int value )
new : name : string * value : int -> AFEnumerationValue
Parameters
- name
- Type: SystemString
The name of the AFEnumerationValue. - value
- Type: SystemInt32
The Value of the AFEnumerationValue.
Remarks
A dynamically created AFEnumerationValue is not associated with an
AFEnumerationSet or a PISystem.
This type of AFEnumerationValue is normally used to represent a
PISDK.DigitalState object.