Partilhar via


InvokeCommandCommand.Session Property

Definition

The PSSession object describing the remote runspace using which the specified cmdlet operation will be performed.

public:
 virtual property cli::array <System::Management::Automation::Runspaces::PSSession ^> ^ Session { cli::array <System::Management::Automation::Runspaces::PSSession ^> ^ get(); void set(cli::array <System::Management::Automation::Runspaces::PSSession ^> ^ value); };
public override System.Management.Automation.Runspaces.PSSession[] Session { get; set; }
[System.Management.Automation.Parameter(ParameterSetName="FilePathRunspace", Position=0)]
[System.Management.Automation.Parameter(ParameterSetName="Session", Position=0)]
[System.Management.Automation.ValidateNotNullOrEmpty]
public override System.Management.Automation.Runspaces.PSSession[] Session { get; set; }
member this.Session : System.Management.Automation.Runspaces.PSSession[] with get, set
[<System.Management.Automation.Parameter(ParameterSetName="FilePathRunspace", Position=0)>]
[<System.Management.Automation.Parameter(ParameterSetName="Session", Position=0)>]
[<System.Management.Automation.ValidateNotNullOrEmpty>]
member this.Session : System.Management.Automation.Runspaces.PSSession[] with get, set
Public Overrides Property Session As PSSession()

Property Value

Attributes

Applies to