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

AF SDK Reference

AFEnumerationSet.GetBySystemStateCode Method

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFEnumerationSet.GetBySystemStateCode Method
Gets the specified AFEnumerationValue from the SystemStateSet collection by its AFSystemStateCode.

Namespace:  OSIsoft.AF.Asset
Assembly:  OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182

Syntax

public static AFEnumerationValue GetBySystemStateCode(
	AFSystemStateCode stateCode
)
Public Shared Function GetBySystemStateCode ( 
	stateCode As AFSystemStateCode
) As AFEnumerationValue

Dim stateCode As AFSystemStateCode
Dim returnValue As AFEnumerationValue

returnValue = AFEnumerationSet.GetBySystemStateCode(stateCode)
public:
static AFEnumerationValue^ GetBySystemStateCode(
	AFSystemStateCode stateCode
)
static member GetBySystemStateCode : 
        stateCode : AFSystemStateCode -> AFEnumerationValue 

Parameters

stateCode
Type: OSIsoft.AF.AssetAFSystemStateCode
The AFSystemStateCode that corresponds to the desired AFEnumerationValue from the SystemStateSet collection.

Return Value

Type: AFEnumerationValue
Returns the AFEnumerationValue that corresponds to the specified stateCode parameter.

Remarks

This method is similar to the collection's GetByValue(Int32)) method except the object is retrieved by AFSystemStateCode from the SystemStateSet collection.

Version Information

AFSDK


See Also

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