title: C# IFileOperation How to get status and error information for all operations
body: <p>I would like to use IFileOperation in my .NET C# application.</p>
  
  <p>I found this article <a href="http://blogs.msdn.com/b/msdnmagazine/archive/2007/12/12/6738569.aspx" rel="nofollow">http://blogs.msdn.com/b/msdnmagazine/archive/2007/12/12/6738569.aspx</a> (source code is available here <a href="http://download.microsoft.com/download/f/2/7/f279e71e-efb0-4155-873d-5554a0608523/NetMatters2007_12.exe" rel="nofollow">http://download.microsoft.com/download/f/2/7/f279e71e-efb0-4155-873d-5554a0608523/NetMatters2007_12.exe</a>).
  It is working well so far but I want to get status and error information for all operations.</p>
  
  <p>There is line of code: </p>
  
  <p><code>if (_callbackSink != null) _sinkCookie = _fileOperation.Advise(_callbackSink);</code></p>
  
  <p>which should allow me to access this information, but I don't know how to use it.</p>
  
  <p>This is how I call it and I want to get some list of actions with result after fileOp.PerformOperations(); Something like: </p>
  
  <pre><code>File/Folder name | Action | Result 
  d:\test\      | Copy | OK
  d:\test\a.jpg | Copy | OK
  d:\test\b.jpg | Copy | CALCELED
  
  using (FileOperation fileOp = new FileOperation(new FileOperationProgressSink(), this)) {
    fileOp.CopyItem(source, destination, name);
    fileOp.PerformOperations();
  }
  </code></pre>
  
  <p>I know that I can get this information in FileOperationProgressSink.PostCopyItem, but I need them all on FileOperation class so I can access them like fileOp.ResultData[].</p>
  
  <p>Can somebody help me with that?</p>