Example of Timeout Value Change

Advertisement

spencet15
Joined:
Posts:
1
Location:
CT

Example of Timeout Value Change

I'm trying to override the default timeout value in my SessionOptions code but unable to determine the correct syntax of the timeout setting.

'// setup FTP session options
Dim mySessionOptions As New SessionOptions
With mySessionOptions
.Protocol = Protocol.Sftp
.HostName = FTP.FtpHostName
.UserName = FTP.FtpUserName
.Password = FTP.FtpUserPassword
.GiveUpSecurityAndAcceptAnySshHostKey = True
.Timeout(30)
End With


I've also tried .Timeout = 30 to no avail.

Reply with quote

Advertisement

Advertisement

You can post new topics in this forum