Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

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

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

Options

Topic review

martin

Re: resume support is read only WINSCP5.2.4BETA

An instance of TransferResumeSupport is auto-created by TransferOptions constructor. Just set it's properties.
transferOptions.ResumeSupport.State = TransferResumeSupportState.Off;
rjthannam

resume support is read only WINSCP5.2.4BETA

Hi - Thanks for fixing the transfer resume support in the .net library however I cant set the state as the resume support property is set to be read-only

running windows 8 with 3.5 framework

my code for setting resume state
TransferOptions transferOptions = new TransferOptions();
transferOptions.TransferMode = TransferMode.Binary;

TransferResumeSupport trs = null; //no constructor so i leave as null to create object
trs.State = TransferResumeSupportState.Off;
trs.Threshold = 0;
transferOptions.ResumeSupport = trs; // <-- this line fails as Resume support is read only

Transfer options class
public sealed class TransferOptions
{
public TransferOptions();

public string FileMask { get; set; }
public FilePermissions FilePermissions { get; set; }
public bool PreserveTimestamp { get; set; }
public TransferResumeSupport ResumeSupport { get; }
public TransferMode TransferMode { get; set; }
}

Apologies if this has already been reported I couldn't find any mention of it
Richard