TransferResumeSupport Class

Configures automatic resume/transfer to temporary filename.

Advertisement

Syntax

Namespace: WinSCP

C#
public sealed class TransferResumeSupport
VB.NET
Public NotInheritable Class TransferResumeSupport

Properties

Name Description
TransferResumeSupportState State Sets what files will be transferred with resume support/to temporary filename. Use TransferResumeSupportState.Default for built-in default (currently all files above 100 KB), TransferResumeSupportState.On for all files, TransferResumeSupportState.Off for no file (turn off) or TransferResumeSupportState.Smart for all files above threshold (see Threshold).
int Threshold Threshold (in KB) for TransferResumeSupportState.Smart mode. Setting the Threshold automatically sets the State to the TransferResumeSupportState.Smart.

Methods

Name Description
string ToString() Returns textual representation of settings. (Overrides Object.ToString().)

Remarks

This class is referenced by TransferOptions.ResumeSupport.

Advertisement

Example

C# Example

TransferOptions transferOptions = new TransferOptions();
// Enabled transfer with resume support/to temporary filename for all files
transferOptions.ResumeSupport.State = TransferResumeSupportState.On;
session.PutFiles(localPath, remotePath, false, transferOptions).Check()

Real-Life Example

Last modified: by martin