PowerTCP Zip Compression for .NET
BeginQuickUnzip(String,String,Object) Method




The Stream that contains the compressed data.
A directory where decompressed files will be stored.
User state information. Use this to pass data to your EndXXX event handler.
Asynchronously open and decompress a zip archive.
Syntax
<DescriptionAttribute("Begins an asynchronous Unzip operation, to unzip a given zip file to a specified directory.")>
Public Overloads Function BeginQuickUnzip( _
   ByVal source As String, _
   ByVal destination As String, _
   ByVal state As Object _
) As IAsyncResult
Dim instance As Archive
Dim source As String
Dim destination As String
Dim state As Object
Dim value As IAsyncResult
 
value = instance.BeginQuickUnzip(source, destination, state)
[Description("Begins an asynchronous Unzip operation, to unzip a given zip file to a specified directory.")]
public IAsyncResult BeginQuickUnzip( 
   string source,
   string destination,
   object state
)
[Description("Begins an asynchronous Unzip operation, to unzip a given zip file to a specified directory.")]
public: IAsyncResult* BeginQuickUnzip( 
   string* source,
   string* destination,
   Object* state
) 
[Description("Begins an asynchronous Unzip operation, to unzip a given zip file to a specified directory.")]
public:
IAsyncResult^ BeginQuickUnzip( 
   String^ source,
   String^ destination,
   Object^ state
) 

Parameters

source
The Stream that contains the compressed data.
destination
A directory where decompressed files will be stored.
state
User state information. Use this to pass data to your EndXXX event handler.

Return Value

An IAsyncResult that represents the asynchronous operation, which could still be pending.
Exceptions
ExceptionDescription
System.InvalidOperationExceptionBeginXXX method used without providing an EndXXX event handler.
ZipExceptionA critical zip operation error occurred during this activity. Please see ZipException.Message for details.
Remarks

This method is a quick and easy way to use the Archive component to decompress a given compressed Stream to the specified destination directory in one step. It combines the two operations of Archive.Open and Archive.Unzip.

The Archive.PreservePath property determines whether to preserve the paths. The Archive.Overwrite property determines whether and how an existing file will be overwritten. By default, the paths will not be preserved and the overwrite choice is Overwrite.Never. The Archive.Password property is used for decrypting the encrypted items.

If an error occurs for an individual item during this operation, the Archive.Exception Event will be raised.

See Also

Reference

Archive Class
Archive Members
Overload List


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