Session.Open Method
Opens the session.
Advertisement
Syntax
C#
public void Open(SessionOptions sessionOptions)
VB.NET
Public Sub Open(sessionOptions As SessionOptions)
Parameters
Name | Description |
---|---|
SessionOptions sessionOptions | Defines information to allow an automatic connection and authentication of the session. |
Exceptions
Exception | Condition |
---|---|
InvalidOperationException | Session is already opened. |
ArgumentException ArgumentOutOfRangeException |
Invalid combination of values of SessionOptions properties. |
SessionLocalException | Error communicating with winscp.com . See the exception documentation for details. |
SessionRemoteException | Connection or authentication has failed. See the exception documentation for details. |
TimeoutException | Timeout waiting for winscp.com to respond. |
Remarks
See SessionOptions
for details about properties you need to fill in to successfully connect and authenticate.
Advertisement