public sealed class ZipArchiver : Archiver
Public NotInheritable Class ZipArchiver
Inherits Archiver
Dim instance As ZipArchiver
public ref class ZipArchiver sealed : public Archiver
[<SealedAttribute>]
type ZipArchiver =
class
inherit Archiver
end
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
Friend WithEvents Archiver As New ZipArchiver(".\7z64.dll")
Private Sub Test() Handles MyBase.Shown
' Build a compressed file.
Archiver.Build("C:\Source Folder", "C:\File.7z", CompressionMethod.Lzma2, CompressionLevel.Normal)
' Add files into the compressed file.
Archiver.Add({"C:\File1.ext", "C:\File2.ext"}, "C:\File.7z", CompressionMethod.Lzma2, CompressionLevel.Normal)
' Build a SFX file.
Archiver.BuildSfx("C:\Source Folder", "C:\File.exe", SevenZipSharpSfxModule.WinExe, CompressionMethod.Lzma2, CompressionLevel.Normal)
' Extract the compressed files.
Archiver.Extract("C:\File.7z", "C:\Extracted")
Archiver.Extract("C:\File.exe", "C:\Extracted SFX")
End Sub
Public Sub SevenZip_CompressionProgressChanged(ByVal sender As Object, ByVal e As SevenZip.ProgressEventArgs) _
Handles Archiver.CompressionProgressChanged
Console.WriteLine(String.Format("Percent compressed: {0}%", e.PercentDone))
End Sub
Public Sub SevenZip_ExtractionProgressChanged(ByVal sender As Object, ByVal e As SevenZip.ProgressEventArgs) _
Handles Archiver.ExtractionProgressChanged
Console.WriteLine(String.Format("Percent extracted: {0}%", e.PercentDone))
End Sub
Public Sub SevenZip_SfxCreated(ByVal sender As Object, ByVal e As String) _
Handles Archiver.SfxCreated
Console.WriteLine(String.Format("SFX created: {0}", e))
End Sub
End Class
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
ZipArchiver(FileInfo) | Initializes a new instance of the ZipArchiver class. |
ZipArchiver(String) | Initializes a new instance of the ZipArchiver class. |
Add(IEnumerableString, String) |
Appends the source file or directory into the specified compressed archive using the default compression parameters.
(Inherited from Archiver) |
Add(String, String) |
Appends the source file or directory into the specified compressed archive using the default compression parameters.
(Inherited from Archiver) |
Add(IEnumerableString, String, String) |
Appends the source file or directory into the specified compressed archive, with a password, using the default compression parameters.
(Inherited from Archiver) |
Add(String, String, String) |
Appends the source file or directory into the specified compressed archive, with a password, using the default compression parameters.
(Inherited from Archiver) |
Add(IEnumerableString, String, CompressionMethod, CompressionLevel) |
Appends the source file or directory into the specified compressed archive using the specified compression parameters.
(Inherited from Archiver) |
Add(String, String, CompressionMethod, CompressionLevel) |
Appends the source file or directory into the specified compressed archive using the specified compression parameters.
(Inherited from Archiver) |
Add(IEnumerableString, String, String, CompressionMethod, CompressionLevel) |
Appends the source file or directory into the specified compressed archive, with a password, using the specified compression parameters.
(Inherited from Archiver) |
Add(String, String, String, CompressionMethod, CompressionLevel) |
Appends the source file or directory into the specified compressed archive, with a password, using the specified compression parameters.
(Inherited from Archiver) |
Build(IEnumerableString, String) |
Builds a compressed archive containing the source file or directory using the default compression parameters.
(Inherited from Archiver) |
Build(String, String) |
Builds a compressed archive containing the source file or directory using the default compression parameters.
(Inherited from Archiver) |
Build(IEnumerableString, String, String) |
Builds a compressed archive, with a password, containing the source file or directory using the default compression parameters.
(Inherited from Archiver) |
Build(String, String, String) |
Builds a compressed archive, with a password, containing the source file or directory using the default compression parameters.
(Inherited from Archiver) |
Build(IEnumerableString, String, CompressionMethod, CompressionLevel) |
Builds a compressed archive containing the source file or directory using the specified compression parameters.
(Inherited from Archiver) |
Build(String, String, CompressionMethod, CompressionLevel) |
Builds a compressed archive containing the source file or directory using the specified compression parameters.
(Inherited from Archiver) |
Build(IEnumerableString, String, String, CompressionMethod, CompressionLevel) |
Builds a compressed archive, with a password, containing the source file or directory using the specified compression parameters.
(Inherited from Archiver) |
Build(String, String, String, CompressionMethod, CompressionLevel) |
Builds a compressed archive, with a password, containing the source file or directory using the specified compression parameters.
(Inherited from Archiver) |
BuildSfx(IEnumerableString, String, SevenZipSharpSfxModule) |
Builds a self-extracting archive (SFX) containing the source file or directory using the default compression parameters.
(Inherited from Archiver) |
BuildSfx(String, String, SevenZipSharpSfxModule) |
Builds a self-extracting archive (SFX) containing the source file or directory using the default compression parameters.
(Inherited from Archiver) |
BuildSfx(IEnumerableString, String, String, SevenZipSharpSfxModule) |
Builds a self-extracting archive (SFX), with a password, containing the source file or directory using the default compression parameters.
(Inherited from Archiver) |
BuildSfx(String, String, String, SevenZipSharpSfxModule) |
Builds a self-extracting archive (SFX), with a password, containing the source file or directory using the default compression parameters.
(Inherited from Archiver) |
BuildSfx(IEnumerableString, String, SevenZipSharpSfxModule, CompressionMethod, CompressionLevel) |
Builds a self-extracting archive (SFX) containing the source file or directory using the specified compression parameters.
(Inherited from Archiver) |
BuildSfx(String, String, SevenZipSharpSfxModule, CompressionMethod, CompressionLevel) |
Builds a self-extracting archive (SFX) containing the source file or directory using the specified compression parameters.
(Inherited from Archiver) |
BuildSfx(IEnumerableString, String, String, SevenZipSharpSfxModule, CompressionMethod, CompressionLevel) |
Builds a self-extracting archive (SFX), with a password, containing the source file or directory using the specified compression parameters.
(Inherited from Archiver) |
BuildSfx(String, String, String, SevenZipSharpSfxModule, CompressionMethod, CompressionLevel) |
Builds a self-extracting archive (SFX), with a password, containing the source file or directory using the specified compression parameters.
(Inherited from Archiver) |
Dispose |
Releases all the resources used by this instance.
(Inherited from Archiver) |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) |
Extract(String, String) |
Extracts the contents of the source compressed archive to the specified diretory.
(Inherited from Archiver) |
Extract(String, String, String) |
Extracts the contents of the source compressed archive encrypted with a password, to the specified diretory.
(Inherited from Archiver) |
GetHashCode | Serves as the default hash function. (Inherited from Object) |
GetType | Gets the Type of the current instance. (Inherited from Object) |
ToString | Returns a string that represents the current object. (Inherited from Object) |
CompressionProgressChanged |
Occurs when the compression progress has changed.
(Inherited from Archiver) |
ExtractionProgressChanged |
Occurs when the extraction progress has changed.
(Inherited from Archiver) |
SfxCreated |
Occurs when a SFX is created.
(Inherited from Archiver) |
CanConvertTo |
Determines whether the source object can be converted to the specified target type.
(Defined by ObjectExtensions) |
CanConvertToT |
Determines whether the source object can be converted to the specified target type.
(Defined by ObjectExtensions) |
ConvertToT |
Converts an object to the specified target type.
If the conversion fails, an exception is thrown.
(Defined by ObjectExtensions) |
ConvertToT |
Converts an object to the specified target type.
If the conversion fails, returns the specified default value.
(Defined by ObjectExtensions) |
IsDisposable |
Determines whether the specified object is a disposable type
(i.e., it implements IDisposable interface).
(Defined by ObjectExtensions) |
Speak |
Speaks the string representation of the source object by using the
operating system integrated text-to-speech synthesizer.
(Defined by ObjectExtensions) |
Speak |
Speaks the string representation of the source object by using the
operating system integrated text-to-speech synthesizer.
(Defined by ObjectExtensions) |
ThrowIfNullTException |
Throws the specified exception if the source object is null.
(Defined by ObjectExtensions) |