C# File Copy Rollback
<p>Does anyone know how to implement a rollback function in file copying when an exception is thrown.</p>

<p>Here are some conditions when I copy the files:</p>

<ol>
<li>Copy the file to a shared folder</li>
<li>File is no greater than 3MB</li>
<li>File is an image file (jpg, jpeg, bmp, gif, png)</li>
<li>Prevention of file name duplicate is already implemented</li>
<li>OS is in Windows XP and higher</li>
<li>Code is on C# .Net 4.0 in Visual Studio 2010 Professional</li>
<li>Network connection is Local Area Network</li>
<li>Multiple files to copy, rollback when an exception is thrown</li>
</ol>

<p>Please help.
Thanks in advance.</p>
