PSRemotingBaseCmdlet.Port Property

Gets and sets the value of the Port parameter of the derived cmdlets. This property is introduced in Windows PowerShell 2.0.

Namespace: Microsoft.PowerShell.Commands
Assembly: System.Management.Automation (in System.Management.Automation.dll)

Dim instance As PSRemotingBaseCmdlet
Dim value As Integer

value = instance.Port

instance.Port = value

[ValidateRangeAttribute(1, 65535)] 
public virtual int Port { get; set; }
/** @property */
public int get_Port ()

/** @property */
public void set_Port (int value)

public function get Port () : int

public function set Port (value : int)

Property Value

An Int32 value that specifies the network port on the remote computer used for the command.

This topic is included in this SDK for completeness only. For more information about Windows PowerShell cmdlets, see Windows PowerShell Cmdlet Help Topics in the Microsoft TechNet library.

For Help at the command line, type: get-help [cmdletname]

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


Target Platforms