FileOverwriteEventArgs.cs 911 B

123456789101112131415161718192021222324252627282930313233
  1. #if UNMANAGED
  2. namespace SevenZip
  3. {
  4. using System;
  5. /// <summary>
  6. /// EventArgs for FileExists event, stores the file name and asks whether to overwrite it in case it already exists.
  7. /// </summary>
  8. public sealed class FileOverwriteEventArgs : EventArgs
  9. {
  10. /// <summary>
  11. /// Initializes a new instance of the FileOverwriteEventArgs class
  12. /// </summary>
  13. /// <param name="fileName">The file name.</param>
  14. public FileOverwriteEventArgs(string fileName)
  15. {
  16. FileName = fileName;
  17. }
  18. /// <summary>
  19. /// Gets or sets the value indicating whether to cancel the extraction.
  20. /// </summary>
  21. public bool Cancel { get; set; }
  22. /// <summary>
  23. /// Gets or sets the file name to extract to. Null means skip.
  24. /// </summary>
  25. public string FileName { get; set; }
  26. }
  27. }
  28. #endif