Dart.PowerTCP.Zip Namespace > Archive Class > BeginQuickUnzip Method : BeginQuickUnzip(Stream,String,Object) Method |
<DescriptionAttribute("Begins an asynchronous Unzip operation.")> Public Overloads Function BeginQuickUnzip( _ ByVal source As Stream, _ ByVal destination As String, _ ByVal state As Object _ ) As IAsyncResult
Dim instance As Archive Dim source As Stream Dim destination As String Dim state As Object Dim value As IAsyncResult value = instance.BeginQuickUnzip(source, destination, state)
[Description("Begins an asynchronous Unzip operation.")] public IAsyncResult BeginQuickUnzip( Stream source, string destination, object state )
[Description("Begins an asynchronous Unzip operation.")] public: IAsyncResult* BeginQuickUnzip( Stream* source, string* destination, Object* state )
[Description("Begins an asynchronous Unzip operation.")] public: IAsyncResult^ BeginQuickUnzip( Stream^ source, String^ destination, Object^ state )
Exception | Description |
---|---|
System.InvalidOperationException | BeginXXX method used without providing an EndXXX event handler. |
ZipException | A critical zip operation error occurred during this activity. Please see ZipException.Message for details. |
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.