An NDoc Documented Class Library |

# FTPConnection.SetLastWriteTime Method

Set modification time for a remote file.

public virtual void SetLastWriteTime(
string remoteFile,
DateTime lastWriteTime
);

#### Parameters

remoteFile
  Name of remote file.
lastWriteTime
  Desired write-time (given in local timezone).

#### Remarks

Although times are passed to the server with second precision, some servers may ignore seconds and only provide minute precision. May not be supported by some FTP servers.

#### See Also

FTPConnection Class | EnterpriseDT.Net.Ftp Namespace