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

AF SDK Reference

PIConnectionInfo.Port Property

  • Last UpdatedNov 18, 2025
  • 2 minute read
PIConnectionInfo.Port Property
Read/write property that is the port number used to connect to the PIServer on the remote host.

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

Syntax

public int Port { get; set; }
Public Property Port As Integer
	Get
	Set

Dim instance As PIConnectionInfo
Dim value As Integer

value = instance.Port

instance.Port = value
public:
property int Port {
	int get ();
	void set (int value);
}
member Port : int with get, set

Property Value

Type: Int32
The port number used to connect to the PIServer on the remote host.
Important note Important
This property can only be modified when disconnected from the PIServer.

Remarks

If the PIServer is part of a PICollective, then this property can only be modified by editing the PICollectiveMember settings.

Version Information

AFSDK


See Also

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