Discuss this help topic in SecureBlackbox Forum

TElSftpClient.Versions

TElSftpClient     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;
    TSBSftpVersions = set of TSBSftpVersion;

[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#]
    TElSftpClient.Versions = SBSftpCommon.Unit.sbSFTP4 | SBSftpCommon.Unit.sbSFTP5 | SBSftpCommon.Unit.sbSFTP6;

[VB.NET]
    TElSftpClient.Versions = SBSftpCommon.Unit.sbSFTP4 Or SBSftpCommon.Unit.sbSFTP5 Or SBSftpCommon.Unit.sbSFTP6

[Pascal]
    TElSftpClient.Versions := sbSFTP4 or sbSFTP5 or sbSFTP6;

See also:     Version    

Discuss this help topic in SecureBlackbox Forum