Dart.PowerTCP.Zip Namespace > ArchiveItem Class > Unzip Method : Unzip(Stream) Method |
<DescriptionAttribute("To decompresses the data this object represents. The destination is a stream. ")> Public Overloads Sub Unzip( _ ByVal destination As Stream _ )
Dim instance As ArchiveItem Dim destination As Stream instance.Unzip(destination)
[Description("To decompresses the data this object represents. The destination is a stream. ")] public void Unzip( Stream destination )
[Description("To decompresses the data this object represents. The destination is a stream. ")] public: void Unzip( Stream* destination )
[Description("To decompresses the data this object represents. The destination is a stream. ")] public: void Unzip( Stream^ destination )
Exception | Description |
---|---|
ZipException | A critical zip operation error occurred during this activity. Please see ZipException.Message for details. |
' Be sure to import the namespace by putting "Imports Dart.PowerTCP.Zip" ' at the top of your class. ' Open a compressed stream. This populates the Archive collection. Archive1.Open("c:\test.zip") If (Archive1.Count > 1) Then ' Unzip the first item in the collection to a file, preserving its path Archive1(0).Unzip("c:\Test", True, Overwrite.Always) ' Unzip the second item in the collection to a memory stream Dim stream = New System.IO.MemoryStream() Archive1(1).Unzip(stream) End If
// Be sure to import the namespace by putting "using Dart.PowerTCP.Zip;" // at the top of your class. // Open a compressed stream. This populates the Archive collection. archive1.Open("c:\\test.zip"); if (archive1.Count > 1) { // Unzip the first item in the collection to a file, preserving its path archive1[0].Unzip("c:\\Test", true, Overwrite.Always); // Unzip the second item in the collection to a memory stream System.IO.MemoryStream stream = new System.IO.MemoryStream(); archive1[1].Unzip(stream); }