PowerShell.ConnectAsync PowerShell.ConnectAsync PowerShell.ConnectAsync Method

Definition

Overloads

ConnectAsync() ConnectAsync() 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) ConnectAsync(PSDataCollection<PSObject>, AsyncCallback, Object) 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() ConnectAsync() 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 ();
member this.ConnectAsync : unit -> IAsyncResult
Public Function ConnectAsync () As IAsyncResult
Returns

ConnectAsync(PSDataCollection<PSObject>, AsyncCallback, Object) ConnectAsync(PSDataCollection<PSObject>, AsyncCallback, Object) 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, 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 AsyncCallback AsyncCallback

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

state
Object Object Object

A user supplied state to call the invocationCallback with.

Returns

Applies to