Rebex
Products Downloads Buy Support Contact
Show / Hide Table of Contents

Sftp.ConnectAsync Method

Namespace: Rebex.Net
Assembly: Rebex.Sftp.dll (version 7.0.9147)

ConnectAsync(String, Object)

Begins asynchronous Connect operation. Connects to the SFTP server.

Declaration
public Task ConnectAsync(string serverName, object state = null)
Parameters
Type Name Description
String serverName

The server address - either a hostname or a dotted string address.

Object state

An optional user-provided object that identifies this particular asynchronous operation.

Returns
Type Description
Task

ConnectAsync(String, Int32, Object)

Begins asynchronous Connect operation. Connects to the SFTP server.

Declaration
public Task ConnectAsync(string serverName, int serverPort, object state = null)
Parameters
Type Name Description
String serverName

The server address - either a hostname or a dotted string address.

Int32 serverPort

The server port (e.g. 22).

Object state

An optional user-provided object that identifies this particular asynchronous operation.

Returns
Type Description
Task
In This Article
  • ConnectAsync(String, Object)
  • ConnectAsync(String, Int32, Object)
© REBEX ČR s.r.o. Back to top
Privacy policy
Manage cookies