Partager via


Runspace.Connect Method

Definition

Connects the runspace to its remote counterpart synchronously.

public:
 abstract void Connect();
public:
 abstract void Connect();
 abstract void Connect();
public abstract void Connect ();
abstract member Connect : unit -> unit
Public MustOverride Sub Connect ()

Exceptions

RunspaceState is not Disconnected.

Remarks

Connects the runspace object to its corresponding runspace on the target server machine. The target server machine is identified by the connection object passed in during construction. The remote runspace is identified by the internal runspace Guid value.

Applies to