Udostępnij za pośrednictwem


PowerShell.ConnectAsync Method

Definition

Overloads

ConnectAsync()

Asynchronously connects to a running command on a remote server. The returned IAsyncResult object can be used with EndInvoke() method to wait on command and/or get command returned data.

ConnectAsync(PSDataCollection<PSObject>, AsyncCallback, Object)

Asynchronously connects to a running command on a remote server. The returned IAsyncResult object can be used with EndInvoke() method to wait on command and/or get command returned data.

ConnectAsync()

Asynchronously connects to a running command on a remote server. The returned IAsyncResult object can be used with EndInvoke() method to wait on command and/or get command returned data.

public:
 IAsyncResult ^ ConnectAsync();
public IAsyncResult ConnectAsync ();
member this.ConnectAsync : unit -> IAsyncResult
Public Function ConnectAsync () As IAsyncResult

Returns

IAsyncResult.

Applies to

ConnectAsync(PSDataCollection<PSObject>, AsyncCallback, Object)

Asynchronously connects to a running command on a remote server. The returned IAsyncResult object can be used with EndInvoke() method to wait on command and/or get command returned data.

public:
 IAsyncResult ^ ConnectAsync(System::Management::Automation::PSDataCollection<System::Management::Automation::PSObject ^> ^ output, AsyncCallback ^ invocationCallback, System::Object ^ state);
public IAsyncResult ConnectAsync (System.Management.Automation.PSDataCollection<System.Management.Automation.PSObject> output, AsyncCallback invocationCallback, object state);
member this.ConnectAsync : System.Management.Automation.PSDataCollection<System.Management.Automation.PSObject> * AsyncCallback * obj -> IAsyncResult
Public Function ConnectAsync (output As PSDataCollection(Of PSObject), invocationCallback As AsyncCallback, state As Object) As IAsyncResult

Parameters

output
PSDataCollection<PSObject>

The output buffer to return from EndInvoke.

invocationCallback
AsyncCallback

An AsyncCallback to be called once the previous invocation has completed.

state
Object

A user supplied state to call the invocationCallback with.

Returns

IAsyncResult.

Applies to