Topic "A constructor was not found. WinSCP.TransferResumeSupport"

Author Message
Superchick
[View user's profile]

Joined: 2014-02-28
Posts: 1
Location: South Africa
hi there,
I am writing a PowerShell script to download a file from an FTP site. I have loaded the assembly.

The script works fine to download a file.
But each time I try to create a new TrasnferResumeSupport Object.
With this:

Code:

        $resumeSupport = New-Object WinSCP.TransferResumeSupport


I get this error:
A constructor was not found. Cannot find an appropriate constructor for type WinSCP.TransferResumeSupport.

Am I missing something here?

Thank you.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
You cannot create an instance of TransferResumeSupport.

Just access existing instance using TransferOptions.ResumeSupport:
https://winscp.net/eng/docs/library_transferoptions
Advertisements

You can post new topics in this forum






Search Site

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