IOUtilitiesFileOverwrite Method |
Overwrites a file.
Namespace:
ShellBoost.Core.Utilities
Assembly:
ShellBoost.Core (in ShellBoost.Core.dll) Version: 1.8.3.0
Syntax public static bool FileOverwrite(
string source,
string destination,
bool unprotect = true,
bool throwOnError = true
)
Parameters
- source
- Type: SystemString
The source. - destination
- Type: SystemString
The destination. - unprotect (Optional)
- Type: SystemBoolean
if set to true the destination will be unprotected if needed. - throwOnError (Optional)
- Type: SystemBoolean
if set to true errors may be throw in case of errors.
Return Value
Type:
Booleantrue if a file was copied,
false otherwise.
Exceptions See Also