ComponentPro UltimateZip

      BlankVolumeRequestedEventArgs Class

      See AlsoMembersMembers Options: Show AllLanguage Filter: AllSend comments on this topic to ComponentPro
      Provides data for the BlankVolumeRequested event.

      Syntax

      public class BlankVolumeRequestedEventArgs : AsyncEventArgs

      Examples

      Shows how to handle the BlankVolumeRequested event.

      using System;
      using ComponentPro.Compression;
      
      ...
      
      void HandleBlankVolumeRequestedEvent()
      {
          // Create a new instance. 
          Zip zip = new Zip();
      
          zip.SpanningMode = SpanningMode.Spanning;
          zip.VolumeSettings.VolumeSize = VolumeSize.Disk1_44MB;
          
          // Create a spanning archive. 
          zip.Create(@"D:\test.zip");
      
          // Handle the event. 
          zip.BlankVolumeRequested += zip_BlankVolumeRequested;
      
          // ... 
       
          // Add some files to it. 
          zip.AddFiles(@"c:\my dir");
      
          // ... 
       
          // Close. 
          zip.Close();
      }
      
      void zip_BlankVolumeRequested(object sender, BlankVolumeRequestedEventArgs e)
      {
          Console.WriteLine("Need a new blank volume: " + e.VolumeFileName);
          Console.Write("Enter new volume file path or leave blank for default: ");
          string path = Console.ReadLine();
      
          if (!string.IsNullOrEmpty(path))
              e.VolumeFileName = path;
      }

      Inheritance Hierarchy

               ComponentPro.Compression.ComponentPro.Compression.BlankVolumeRequestedEventArgs

      Framework

      .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