Share via


Pipeline.Connect Method

Definition

Connects synchronously to a running command on a remote server. The pipeline object must be in the disconnected state.

public:
 abstract System::Collections::ObjectModel::Collection<System::Management::Automation::PSObject ^> ^ Connect();
public abstract System.Collections.ObjectModel.Collection<System.Management.Automation.PSObject> Connect ();
abstract member Connect : unit -> System.Collections.ObjectModel.Collection<System.Management.Automation.PSObject>
Public MustOverride Function Connect () As Collection(Of PSObject)

Returns

A collection of result objects.

Applies to