Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AF SDK Reference

AFEnumerationValue Constructor

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFEnumerationValue Constructor
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.

Version Information

AFSDK


See Also

In This Topic
TitleResults for “How to create a CRG?”Also Available in