Share via


InvokeCommandCommand.Port Property

Definition

Port specifies the alternate port to be used in case the default ports are not used for the transport mechanism (port 80 for http and port 443 for useSSL)

public:
 virtual property int Port { int get(); void set(int value); };
public:
 virtual property int Port { int get(); void set(int value); };
public override int Port { get; set; }
[System.Management.Automation.Parameter(ParameterSetName="ComputerName")]
[System.Management.Automation.Parameter(ParameterSetName="FilePathComputerName")]
[System.Management.Automation.Parameter(ParameterSetName="SSHHost")]
[System.Management.Automation.ValidateRange(1, 65535)]
public override int Port { get; set; }
member this.Port : int with get, set
[<System.Management.Automation.Parameter(ParameterSetName="ComputerName")>]
[<System.Management.Automation.Parameter(ParameterSetName="FilePathComputerName")>]
[<System.Management.Automation.Parameter(ParameterSetName="SSHHost")>]
[<System.Management.Automation.ValidateRange(1, 65535)>]
member this.Port : int with get, set
Public Overrides Property Port As Integer

Property Value

Attributes

Remarks

Currently this is being accepted as a parameter. But in future support will be added to make this a part of a policy setting. When a policy setting is in place this parameter can be used to override the policy setting

Applies to