Class SplitArchiveSaveOptions

Class SplitArchiveSaveOptions

Namespace: Aspose.Zip.Saving
Assembly: Aspose.Zip.dll (25.2.0)

Options for saving a multi-volume zip archive.

public class SplitArchiveSaveOptions

Inheritance

objectSplitArchiveSaveOptions

Inherited Members

object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Constructors

SplitArchiveSaveOptions(string, uint)

Instantiates settings for saving a multi-volume zip archive.

public SplitArchiveSaveOptions(string fileName, uint segmentSize)

Parameters

fileName string

Name for volumes. May be with or without .zip extension.

segmentSize uint

Size of volume.

Remarks

Some volumes may be less than segmentSize. In most cases the last segment will be less but rarely regular segments might be too.

Names of files will be as follows: fileName.z01, fileName.z02, ..., fileName.z(n-1), fileName.zip.

Exceptions

ArgumentOutOfRangeException

Segment size is less than 65536 bytes.

Properties

ArchiveComment

Gets or sets optional comment for the Zip file.

public string ArchiveComment { get; set; }

Property Value

string

CloseEntrySource

Gets or sets a value indicating whether entries’ sources should be closed right after an entry has been compressed.

public bool CloseEntrySource { get; set; }

Property Value

bool

Encoding

Gets or sets encoding for converting file names and other strings to bytes.

public Encoding Encoding { get; set; }

Property Value

Encoding

Remarks

If not set, code page 437 will be used.

EventsBag

Gets or sets container of events raising on archive saving.

public EventsBag EventsBag { get; set; }

Property Value

EventsBag

FileName

Gets the name of segments without extension.

public string FileName { get; }

Property Value

string

SegmentSize

Gets the size of segment.

public uint SegmentSize { get; }

Property Value

uint

 English