Property 'WinSCP.TransferOptions.ResumeSupport' lacks setter

Advertisement

dialalpha
Joined:
Posts:
2

Property 'WinSCP.TransferOptions.ResumeSupport' lacks setter

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?

noset.PNG

Reply with quote

Advertisement

fpreich
Joined:
Posts:
2

Powershell: WinSCP.TransferOptions.ResumeSupport

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

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
41,517
Location:
Prague, Czechia

Re: Powershell: WinSCP.TransferOptions.ResumeSupport

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.

Reply with quote

Advertisement

fpreich
Joined:
Posts:
2

Re: Powershell: WinSCP.TransferOptions.ResumeSupport

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.

Reply with quote

Advertisement

You can post new topics in this forum