PIConnectionInfo.Port Property
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
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: Int32The port number used to connect to the PIServer on the remote host.
| 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.