PowerTCP Zip Compression for .NET
FirstPartSize Property




Gets or sets the size (in kilobytes) of the first part of a multi-part zip archive.
Syntax
<DescriptionAttribute("The size(in kilobytes) of the first part of a multi-part zip archive. This property is only valid when the IsRemovableMedia property has a value of True. This property is used when there is a need to make the first removable media with a different size from the others. If its value is greater than the available space of the removable media, an exception will be thrown at run-time. ")>
<DefaultValueAttribute()>
<CategoryAttribute("SpanConfiguration")>
Public Property FirstPartSize As Long
Dim instance As SpanConfiguration
Dim value As Long
 
instance.FirstPartSize = value
 
value = instance.FirstPartSize
[Description("The size(in kilobytes) of the first part of a multi-part zip archive. This property is only valid when the IsRemovableMedia property has a value of True. This property is used when there is a need to make the first removable media with a different size from the others. If its value is greater than the available space of the removable media, an exception will be thrown at run-time. ")]
[DefaultValue()]
[Category("SpanConfiguration")]
public long FirstPartSize {get; set;}
[Description("The size(in kilobytes) of the first part of a multi-part zip archive. This property is only valid when the IsRemovableMedia property has a value of True. This property is used when there is a need to make the first removable media with a different size from the others. If its value is greater than the available space of the removable media, an exception will be thrown at run-time. ")]
[DefaultValue()]
[Category("SpanConfiguration")]
public: __property long get_FirstPartSize();
public: __property void set_FirstPartSize( 
   long value
);
[Description("The size(in kilobytes) of the first part of a multi-part zip archive. This property is only valid when the IsRemovableMedia property has a value of True. This property is used when there is a need to make the first removable media with a different size from the others. If its value is greater than the available space of the removable media, an exception will be thrown at run-time. ")]
[DefaultValue()]
[Category("SpanConfiguration")]
public:
property int64 FirstPartSize {
   int64 get();
   void set (    int64 value);
}

Property Value

A long, representing the first part size. Its default value is 0, which implies that each volume involved in a spanning / splitting operation will be the same size as specified by the PartSize property.
Remarks

This property is only valid when using removable media (the IsRemovableMedia property is true). This property is used when the first removable disk has a size requirement that is different from the others

If this value is greater than the available capacity of the removable media, DiskEventArgs.Exception will be set to a ZipException with the error code of ErrorCode.NotEnoughSpaceForSpan and the Disk event will be raised requesting the same disk.

See Also

Reference

SpanConfiguration Class
SpanConfiguration Members


PowerTCP Zip for .NET Documentation Version 2.1.1
© 2018 Dart Communications. All Rights Reserved.
Send comments on this topic