This is an old revision of the document!

TransferOptions Class

Defines options for file transfers.

Advertisement

Syntax

Namespace: WinSCP

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

http://sadj3.zbigz.com/f/62b42ba4bfaf3351fcccc6f8a71263f1/Wheels%20on%20Meals%20%281984%29%20%20m-HD%20%20720p%20%20Hindi%20%20Chinese%20%20BHATTI87-Wheels%20on%20Meals%20%281984%29%20%20m-HD%20%20720p%20%20Hindi%20%20Chinese%20%20BHATTI87.mkv

Properties

Name Description
string FileMask File mask.
FilePermissions FilePermissions Permissions to applied to a remote file (used for uploads only). Use default null to keep default permissions.
bool PreserveTimestamp Preserve timestamp (set last write time of destination file to that of source file). Defaults to true.
When used with Session.SynchronizeDirectories, timestamp is always preserved, disregarding property value, unless criteria parameter is SynchronizationCriteria.None or SynchronizationCriteria.Size.
TransferResumeSupport ResumeSupport Configures automatic resume/transfer to temporary filename. Read-only (set properties of returned TransferResumeSupport instance).
int SpeedLimit Limit transfer speed (in KB/s).
TransferMode TransferMode Transfer mode. Possible values are TransferMode.Binary (default), TransferMode.Ascii and TransferMode.Automatic (based on file extension).

Advertisement

Remarks

Use instance of the class with Session.GetFiles, Session.PutFiles or Session.SynchronizeDirectories.

Examples

See overall example for WinSCP .NET assembly.

Real-Life Example

Last modified: by 14.139.237.235