Discuss this help topic in SecureBlackbox Forum

TElSimpleSFTPClient.Versions

TElSimpleSFTPClient     See also     


Filter: C#  VB.NET  Pascal  C++  PHP  Java  


This property specifies SFTP versions which can be used during the connection

Declaration

[C#]
    TSBSftpVersions Versions;

[VB.NET]
    Property Versions As TSBSftpVersions

[Pascal]
    property Versions : TSBSftpVersions;

[C++]
    TSBSftpVersions get_Versions();
    void set_Versions(TSBSftpVersions Value);

[PHP]
    integer get_Versions()
    void set_Versions(integer $Value)

[Java]
    short getVersions();
    void setVersions(short Value);

Values:

TSBSftpVersions values

Description

Use this property to specify SFTP versions which can be used during the connection. Set this property before connection establishing.

Note, protocol version assigning differs for VCL and .NET versions. To enable several Sftp versions in .NET use bitwise OR operation, for example "sbSFTP3 | sbSFTP4".

Example:  The following shows how to set the property for different SecureBlackbox editions:

[C#]

TElSimpleSFTPClient.Versions = SBSftpCommon.Unit.sbSFTP4 | SBSftpCommon.Unit.sbSFTP5 | SBSftpCommon.Unit.sbSFTP6;

[VB.NET]

TElSimpleSFTPClient.Versions = SBSftpCommon.Unit.sbSFTP4 Or SBSftpCommon.Unit.sbSFTP5 Or SBSftpCommon.Unit.sbSFTP6

[Pascal]

TElSimpleSFTPClient.Versions := sbSFTP4 or sbSFTP5 or sbSFTP6;

See also:     Version    

Discuss this help topic in SecureBlackbox Forum