This is an old revision of the document!
TransferArgs Class
Provides data for file transfer event.
This feature will be available only with the next release.
Syntax
Namespace: WinSCP
Advertisement
public sealed class TransferArgs : FileOperationEventArgs
Properties
| Name | Description |
|---|---|
| ChmodEventArgs Chmod | Result of setting permissions of remote files. Used for uploads only and only, if setting permissions was requested (see TransferOptions.Permissions). |
| string Destination | Full path to target directory of the transfer (local path for downloads, remote path for uploads). |
| SessionRemoteException Error | Error (if any) that occured during operation. null, if operation succeeded. See also Capturing results of operations. (Inherited from OperationEventArgs.) |
| string FileName | Full path to a file that is subject of the operation. (Inherited from FileOperationEventArgs.) |
| RemovalEventArgs Removal | Result of removing source file. Used only, if removing source file was requested (see remove argument of Session.GetFiles and Session.PutFiles). |
| TouchEventArgs Touch | Result of setting timestamp. Used only, if setting timestamp was requested (see TransferOptions.PreserveTimestamp). |
Remarks
This class is:
- Used by
Session.FileTransferredevent; - Referenced by
OperationResult<TransferArgs>returned bySession.GetFilesandSession.PutFiles; - Referenced by
SynchronizationResultreturned bySession.SynchronizeDirectories.
Advertisement