Enum
FileConflictPolicy
ConsoleMonster.FileSystem
What happens when a copy or move meets an existing file.
Inheritance
- Enum
- FileConflictPolicy
Usage
Explore 8 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 6
Accepted by parameters 2
- Extension method FileOperationOptions.ConflictPolicy
- Method FileOperationOptionsFluent.ConflictPolicy
Inherited Methods
ToString 4 overloads
public string ToString(IFormatProvider? provider) #Inherited from Enum
Obsolete("The provider argument is not used. Use ToString() instead.")Parameters
- provider IFormatProvider?
Returns
stringpublic string ToString(string? format, IFormatProvider? provider) #Inherited from Enum
Obsolete("The provider argument is not used. Use ToString(String) instead.")Parameters
- format string?
- provider IFormatProvider?
Returns
stringValues
public const FileConflictPolicy Ask #Ask FileOperationOptions.ResolveConflict for each conflict; without a callback, skip.
Value:
0public const FileConflictPolicy OverwriteOlder #Replace the existing file only when the source was modified later.
Value:
2public const FileConflictPolicy Rename #Keep both: the new file gets a free name such as report (2).csv.
Value:
4