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

AF SDK Reference

Product Family
Current publication
Table of Contents

AFConnectionInfo.Port Property

AFConnectionInfo.Port Property
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: Int32
The port number used to connect to the PI AF Server for this PISystem on the remote host.
Important note Important
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.
Important note Important
When using the NamedPipe protocol, the value of this property is ignored.

Version Information

AFSDK


See Also

Was this topic helpful?