AFEnumerationValue Constructor
- Last UpdatedJan 12, 2026
- 2 minute read
- PI System
- AF SDK 3.2.0
- 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.2.0.7
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.