Specifies the condition for overwriting a file.

Namespace:  Rebex.IO
Assembly:  Rebex.Common (in Rebex.Common.dll)

Syntax

Visual Basic
Public Enumeration OverwriteCondition
C#
public enum OverwriteCondition

Members

Member nameDescription
Supported by the .NET Compact FrameworkNone
No condition = always overwrite.
Supported by the .NET Compact FrameworkSizeDiffers
Overwrite if size differs.
Supported by the .NET Compact FrameworkOlder
Overwrite if the target file is older than the source file. If working with remote servers, this condition is strongly discouraged because modification dates are often misreported by FTP servers, making this mode highly unreliable.
Supported by the .NET Compact FrameworkChecksumDiffers
Overwrite if checksum differs. Available for ZIP, FTP and SFTP. However, only some FTP and SFTP servers support checksums.
You can check availability of this condition using IsOverwriteConditionPossible(OverwriteCondition) method.

Version Information

.NET Compact Framework

Supported in: 3.9, 3.5

See Also