AFConnectionInfo.Port Property
- Last UpdatedSep 18, 2024
- PI System
- AF SDK 2024
- Developer
Read/write property that is the port number used to connect to the PI AF Server
for this PISystem on the remote host.
Namespace: OSIsoft.AF
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.0.1156
Syntax
public int Port { get; set; }
Public Property Port As Integer Get Set Dim instance As AFConnectionInfo 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 PI AF Server for this PISystem on the remote host.
![]() |
---|
This property can only be modified when disconnected from the PI AF Server and is not a connection to a server hosted by OSIsoft. |
Remarks
If the PISystem is part of a AFCollective, then this
property can only be modified by editing the AFCollectiveMember
settings.
![]() |
---|
When using the NamedPipe protocol, the value of this property is ignored. |