RunspaceProvider.GetRunspace(WSManConnectionInfo, UInt32, UInt32) Method

Definition

Get runspace for the specified connection info to be used for running commands

public:
 virtual System::Management::Automation::Runspaces::Runspace ^ GetRunspace(System::Management::Automation::Runspaces::WSManConnectionInfo ^ connectionInfo, System::UInt32 retryCount, System::UInt32 retryInterval);
public virtual System.Management.Automation.Runspaces.Runspace GetRunspace (System.Management.Automation.Runspaces.WSManConnectionInfo connectionInfo, uint retryCount, uint retryInterval);
abstract member GetRunspace : System.Management.Automation.Runspaces.WSManConnectionInfo * uint32 * uint32 -> System.Management.Automation.Runspaces.Runspace
override this.GetRunspace : System.Management.Automation.Runspaces.WSManConnectionInfo * uint32 * uint32 -> System.Management.Automation.Runspaces.Runspace
Public Overridable Function GetRunspace (connectionInfo As WSManConnectionInfo, retryCount As UInteger, retryInterval As UInteger) As Runspace

Parameters

connectionInfo
WSManConnectionInfo

connection info to use

retryCount
UInt32

retry count

retryInterval
UInt32

retry interval in ms

Returns

remote runspace to use

Applies to