Occurs when disk is full.


      public event EventHandler<TEventArgs> DiskFull


      Shows how to handle the DiskFull event.

      using System;
      using ComponentPro.Compression;
      void HandleDiskFullEvent()
          // Create a new instance. 
          Zip zip = new Zip();
          zip.SpanningMode = SpanningMode.Splitting;
          // Create a splitting archive. 
          // Handle the event. 
          zip.DiskFull += zip_DiskFull;
          // ... 
          // Add some files to it. 
          zip.AddFiles(@"c:\my dir");
          // ... 
          // Close. 
      void zip_DiskFull(object sender, DiskFullEventArgs e)
          Console.WriteLine("Disk full! Please choose different location for file: " + e.VolumeFileName);
          Console.Write("Enter new file path: ");
          string path = Console.ReadLine();
          e.VolumeFileName = path;
          if (string.IsNullOrEmpty(path))
              e.Cancel = true;


      .NET Compact Framework.NET Compact Framework

      Supported version: 2.0, 3.5, and 3.9
      Assembly: ComponentPro.Zip.CF (in ComponentPro.Zip.CF.dll)

      .NET Framework.NET Framework

      Supported version: 2.0, 3.0, 3.5, 4.0, 4.5.x, 4.6.x and later
      Assembly: ComponentPro.Zip (in ComponentPro.Zip.dll)

      Xamarin AndroidXamarin Android

      Supported version: 2.3 and later
      Assembly: ComponentPro.Zip.Android (in ComponentPro.Zip.Android.dll)

      Xamarin iOSXamarin iOS

      Supported version: 5.1.x and later
      Assembly: ComponentPro.Zip.iOS (in ComponentPro.Zip.iOS.dll)

      See Also