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) | |
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 ();
Returns
IAsyncResult.
ConnectAsync(PSDataCollection<PSObject>, AsyncCallback, Object)
public IAsyncResult ConnectAsync (System.Management.Automation.PSDataCollection<System.Management.Automation.PSObject> output, AsyncCallback invocationCallback, object state);
Parameters
- output
- PSDataCollection<PSObject>
- invocationCallback
- AsyncCallback
- state
- Object
Returns