Username
Subject
Message body
Options

Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.


(max 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)
Options
 

Topic review

Author Message
fpreich
martin wrote:
fpreich wrote:
$transferOptions.ResumeSupport
Property 'ResumeSupport' cannot be found on this object. Make sure that it exists.

You may be using an old version of WinSCP .NET assembly that lacks the TransferOptions.ResumeSupport property. Make sure you have the latest version.

Yes, this helps !
Thanks Martin,
appreciate your great work.
martin
fpreich wrote:
$transferOptions.ResumeSupport
Property 'ResumeSupport' cannot be found on this object. Make sure that it exists.

You may be using an old version of WinSCP .NET assembly that lacks the TransferOptions.ResumeSupport property. Make sure you have the latest version.
fpreich
Can't find this object in Powershell:

$transferOptions.ResumeSupport
Property 'ResumeSupport' cannot be found on this object. Make sure that it exists.

What's the syntax to set it to TransferResumeSupportState.On ?

Thanks in advance

FP
dialalpha
Post
AH! Thank you Martin. That does it.
martin
TransferOptions.ResumeSupport returns TransferResumeSupport, what is an object. You need to set ITS properties.
See https://winscp.net/eng/docs/library_transferresumesupport

A have updated documentation to make this more clear:
https://winscp.net/eng/docs/library_transferoptions#properties
dialalpha
Attempting to use the C# dll to incorporate winscp into an App. According to the documentation, we can configure transfer options by creating a TransferOptions class and setting its ResumeSupport property. However, the error below is what happens when you try that -

Error: Property or indexer 'WinSCP.TransferOptions.ResumeSupport' cannot be assigned to -- it is read only


Examining the class via the object browser reveals that indeed the property doesn't have a setter. (screenshot attached)

I'm using dll version number 1.1.5.4214 and runtime version v2.0.50727

Is this a bug or is it intentional?

Search

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License