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

AF SDK Reference

AFConnectionPreference Enumeration

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFConnectionPreference Enumeration
Defines the connection preference when connecting to an AFCollective or PICollective.

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

Syntax

public enum AFConnectionPreference
Public Enumeration AFConnectionPreference

Dim instance As AFConnectionPreference
public enum class AFConnectionPreference
type AFConnectionPreference

Members

  Member nameValueDescription
PreferPrimary0 Connect to the Primary server if it is available. If not, then act as if Any were specified.
RequirePrimary1 Only the Primary server is acceptable for a connection. If the primary server is not available, the connection fails.
Any2 No preference to a AFCollectiveMember or PICollectiveMember is specified. Use the individual priority settings of the collective member to influence selection of the server connection.

Remarks

The connection preference is used when defining the AFConnectionInfo.Preference, PIConnectionInfo.DefaultPreference, or PIConnectionInfo.Preference property.

Version Information

AFSDK


See Also

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