Compartilhar via


PowerShell.Connect Method

Definition

Synchronously connects to a running command on a remote server.

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

Returns

Command output as a PSDataCollection.

Applies to