Click or drag to resize
ZipPackage Class

Note: This API is now obsolete.

Represents the ZipPackage class.
Inheritance Hierarchy

Namespace: Telerik.Windows.Zip
Assembly: Telerik.Windows.Zip (in Telerik.Windows.Zip.dll) Version: 2017.2.607.40 (2017.2.607.40)
Syntax
[ObsoleteAttribute("This class has been deprecated. Use ZipArchive instead.")]
public class ZipPackage : ZipArchive

The ZipPackage type exposes the following members.

Methods
  NameDescription
Public methodAdd(IEnumerableString)
Adds the files from the passed IEnumerable of file names in the ZipPackage.
Public methodAdd(String)
Adds a file with the passed file name in the ZipPackage.
Public methodAdd(IEnumerableString, CompressionType)
Adds the files from the passed IEnumerable of file names in the ZipPackage.
Public methodAdd(String, String)
Adds a file with the passed file name in the ZipPackage and associates it with the passed file name in zip.
Public methodAdd(String, CompressionType)
Adds a file with the passed file name in the ZipPackage.
Public methodAdd(String, String, DateTime)
Adds a file with the passed file name in the ZipPackage, associates it with the passed file name in zip and sets a date time for the entry.
Public methodAdd(String, String, CompressionType)
Adds a file with the passed file name in the ZipPackage and associates it with the passed file name in zip.
Public methodAdd(String, String, DateTime, CompressionType)
Adds a file with the passed file name in the ZipPackage, associates it with the passed file name in zip and sets a date time for the entry.
Public methodAddStream(Stream, String)
Adds a stream in the ZipPackage and associates it with the passed file name in zip.
Public methodAddStream(Stream, String, CompressionType)
Adds a stream in the ZipPackage and associates it with the passed file name in zip.
Public methodAddStream(Stream, String, ZipCompression, DateTime)
Adds a stream in the ZipPackage, compresses it with the passed compress method, associates it with the passed file name in zip and sets a date time for the entry.
Public methodAddStream(Stream, String, ZipCompression, DateTime, CompressionType)
Adds a stream in the ZipPackage and associates it with the passed file name in zip.
Public methodClose
Closes the ZipPackage.
Public methodStatic memberCreate
This method is used to create a ZipPackage from a stream.
Public methodCreateEntry(String)
Creates an empty entry that has the specified path and entry name in the zip archive.
(Inherited from ZipArchive.)
Public methodCreateEntry(String, CompressionSettings)
Creates an empty entry that has the specified path and entry name in the zip archive.
(Inherited from ZipArchive.)
Public methodStatic memberCreateFile
This method is used to create a ZipPackage with the passed file name.
Public methodDispose
Releases the resources used by the current instance of the ZipArchive class.
(Inherited from ZipArchive.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from ZipArchive.)
Public methodGetEntry
Retrieves a wrapper for the specified entry in the zip archive.
(Inherited from ZipArchive.)
Public methodIndexOf
Gets the index of the entry in the list of entries of the ZipPackage.
Public methodStatic memberIsZipFile(Stream)
Checks whether the stream that represents a zip file is actually a zip file.
Public methodStatic memberIsZipFile(String)
Checks whether the file with the passed file name is actually a zip file.
Public methodStatic memberOpen
Opens zip archive from the Stream.
Public methodStatic memberOpenFile
This method is used to open a ZipPackage with the passed file name.
Public methodRemoveEntry
Removes the passed entry from the ZipPackage.
Top
Extension Methods
  NameDescription
Public Extension MethodCreateEntryFromFile(String, String)Overloaded.
Archives a file by compressing it and adding it to the zip archive.
(Defined by ZipFile.)
Public Extension MethodCreateEntryFromFile(String, String, CompressionLevel)Overloaded.
Archives a file by compressing it using the specified compression level and adding it to the zip archive.
(Defined by ZipFile.)
Public Extension MethodCreateEntryFromFile(String, String, CompressionSettings)Overloaded.
Archives a file by compressing it using the specified compression settings and adding it to the zip archive.
(Defined by ZipFile.)
Public Extension MethodExtractToDirectory
Extracts all the files in the zip archive to a directory on the file system.
(Defined by ZipFile.)
Top
Properties
  NameDescription
Public propertyEntries
Gets the collection of entries that are currently in the zip archive.
(Inherited from ZipArchive.)
Public propertyEntryNameEncoding
Gets entry name encoding.
(Inherited from ZipArchive.)
Public propertyFileName
Gets the file name for the ZipPackage.
Public propertyMode
Gets a value that describes the type of action the zip archive can perform on entries.
(Inherited from ZipArchive.)
Public propertyZipPackageEntries
Gets the collection of entries that are currently in the zip archive.
Top
Events
  NameDescription
Public eventPropertyChanged
Occurs when a property value changes.
(Inherited from ZipArchive.)
Top
See Also