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

AF SDK Reference

PIConnectionInfo.DefaultPreference Property

  • Last UpdatedNov 18, 2025
  • 2 minute read
PIConnectionInfo.DefaultPreference Property
The default connection preference to be used when attempting to connect to a member in a PICollective.

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

Syntax

public static AFConnectionPreference DefaultPreference { get; set; }
Public Shared Property DefaultPreference As AFConnectionPreference
	Get
	Set

Dim value As AFConnectionPreference

value = PIConnectionInfo.DefaultPreference

PIConnectionInfo.DefaultPreference = value
public:
static property AFConnectionPreference DefaultPreference {
	AFConnectionPreference get ();
	void set (AFConnectionPreference value);
}
static member DefaultPreference : AFConnectionPreference with get, set

Property Value

Type: AFConnectionPreference
Returns the default connection preference to be used when attempting to connect to a member in a PICollective. The default value for this property is PreferPrimary.

Remarks

This property is used to indicate the connection preference when attempting to connect to a member in a PICollective. This preference is used to influence the selection of a PICollectiveMember when a connection is made to the PICollective and not overridden on the PIServer instance Preference setting and not specified in the PIServer.Connect() call when attempting to connect to the server.
Important note Important
This is a client setting and is not persisted between application instances.

Version Information

AFSDK


See Also

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