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

PI Powershell

AddAFServer.Port Property

  • Last UpdatedDec 15, 2025
  • 1 minute read
AddAFServer.Port Property

TCP port the AF Server is listening on. Typically, this is "5457"

Namespace:  OSIsoft.PowerShell
Assembly:  OSIsoft.PowerShell (in OSIsoft.PowerShell.dll) Version: 2.2.3.0 (2.2.3.952)

Syntax

[ParameterAttribute(Position = 3, Mandatory = false, HelpMessage = "Network Port")]
[ValidateNotNullOrEmptyAttribute]
public int Port { get; set; }
<ParameterAttribute(Position := 3, Mandatory := false, HelpMessage := "Network Port")>
<ValidateNotNullOrEmptyAttribute>
Public Property Port As Integer
	Get
	Set

Dim instance As AddAFServer
Dim value As Integer

value = instance.Port

instance.Port = value
public:
[ParameterAttribute(Position = 3, Mandatory = false, HelpMessage = L"Network Port")]
[ValidateNotNullOrEmptyAttribute]
property int Port {
	int get ();
	void set (int value);
}
[<ParameterAttribute(Position = 3, Mandatory = false, HelpMessage = "Network Port")>]
[<ValidateNotNullOrEmptyAttribute>]
member Port : int with get, set

Property Value

Type: Int32

See Also

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