Differences
This shows you the differences between the selected revisions of the page.
2015-03-12 | 2015-06-06 | ||
Restored revision 1424258564. Undoing revision 1426147877. (martin) (hidden) | no summary (8.37.227.34) (hidden) | ||
Line 1: | Line 1: | ||
- | ====== TransferOptions Class ====== | + | Download lagu |
- | Defines options for file transfers. | + | |
- | + | ||
- | ~~AD~~ | + | |
- | + | ||
- | ===== Syntax ===== | + | |
- | Namespace: ''WinSCP'' | + | |
- | + | ||
- | <code csharp *> | + | |
- | public sealed class TransferOptions | + | |
- | </code> | + | |
- | + | ||
- | <code vbnet *> | + | |
- | Public NotInheritable Class TransferOptions | + | |
- | </code> | + | |
- | + | ||
- | ===== Constructors ===== | + | |
- | ^ Name ^ Description ^ | + | |
- | | TransferOptions() | Default constructor. | | + | |
- | + | ||
- | ===== Properties ===== | + | |
- | ^ Name ^ Description ^ | + | |
- | | string FileMask | [[ui_transfer_custom#other_options|File mask]]. | | + | |
- | | [[library_filepermissions|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 ''[[library_session_synchronizedirectories|Session.SynchronizeDirectories]]'', timestamp is always preserved, disregarding property value, unless ''criteria'' parameter is ''SynchronizationCriteria.None'' or ''SynchronizationCriteria.Size''. | | + | |
- | | [[library_transferresumesupport|TransferResumeSupport]] ResumeSupport | Configures [[resume#automatic|automatic resume/transfer to temporary filename]]. Read-only (set properties of returned ''[[library_transferresumesupport|TransferResumeSupport]]'' instance). | | + | |
- | | int SpeedLimit | Limit transfer speed (in KB/s). | | + | |
- | | TransferMode TransferMode | [[transfer_mode|Transfer mode]]. Possible values are ''TransferMode.Binary'' (default), ''TransferMode.Ascii'' and ''TransferMode.Automatic'' (based on file extension). | | + | |
- | + | ||
- | ===== Remarks ===== | + | |
- | Use instance of the class with ''[[library_session_getfiles|Session.GetFiles]]'', ''[[library_session_putfiles|Session.PutFiles]]'' or ''[[library_session_synchronizedirectories|Session.SynchronizeDirectories]]''. | + | |
- | + | ||
- | ===== Examples ===== | + | |
- | See [[library#example|overall example for WinSCP .NET assembly]]. | + | |
- | + | ||
- | ==== Real-Life Example ==== | + | |
- | + | ||
- | * [[script_locking_files_while_uploading|Locking files while uploading / Upload to temporary file name]]. | + | |
- | + |