ComponentPro UltimateZip

      ExistingVolumeRequestedEventArgs Class

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


      public class ExistingVolumeRequestedEventArgs : AsyncEventArgs


      Shows how to handle the ExistingVolumeRequested event.

      using System;
      using ComponentPro.Compression;
      void HandleOpenVolumeEvents()
          // Create a new instance. 
          Zip zip = new Zip();
          zip.SpanningMode = SpanningMode.Spanning;
          // Handle the event. 
          zip.ExistingVolumeRequested += zip_ExistingVolumeRequested;
          // Open an existing spanning archive. 
          // ... 
          // Add some files to it. 
          zip.AddFiles(@"c:\my dir");
          // ... 
          // Close. 
      void zip_ExistingVolumeRequested(object sender, ExistingVolumeRequestedEventArgs e)
          string volumePosition;
          if (e.FirstVolume)
              volumePosition = "the first";
          else if (e.LastVolume)
              volumePosition = "the last";
              volumePosition = "a middle";
          Console.WriteLine(string.Format("Need {0} volume: {1}", volumePosition, 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



      .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