Session.Open Method

Opens the session.

Syntax

C#
public void Open(SessionOptions sessionOptions)
VB.NET
Public Sub Open(ByVal 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.

Advertisements:

Example

 
  library_session_open.txt · Last modified: by martin
 

Search Documentation

This page

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

Associations

Site design by Black Gate