public sealed class SevenZipArchiver : Archiver
Public NotInheritable Class SevenZipArchiver
Inherits Archiver
Dim instance As SevenZipArchiver
public ref class SevenZipArchiver sealed : public Archiver
[<SealedAttribute>]
type SevenZipArchiver =
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.
Public Class Form1 : Inherits Form
Friend WithEvents SevenZip As New SevenZipArchiver(".\7z64.dll")
Private Sub Test() Handles MyBase.Shown
' Build a compressed file.
SevenZip.Build("C:\Source Folder", "C:\File.7z", CompressionMethod.Lzma2, CompressionLevel.Normal)
' Add files into the compressed file.
SevenZip.Add({"C:\File1.ext", "C:\File2.ext"}, "C:\File.7z", CompressionMethod.Lzma2, CompressionLevel.Normal)
' Build a multi-volume compressed file.
SevenZip.Build("C:\Source Folder", "C:\Multi file.7z", CompressionMethod.Lzma2, CompressionLevel.Normal, 10000000)
' Build a SFX file.
SevenZip.BuildSfx("C:\Source Folder", "C:\File.exe", SevenZipSharpSfxModule.WinExe, CompressionMethod.Lzma2, CompressionLevel.Normal)
' Extract the compressed files.
SevenZip.Extract("C:\File.7z", "C:\Extracted")
SevenZip.Extract("C:\Multi file.7z.001", "C:\Extracted Multi")
SevenZip.Extract("C:\File.exe", "C:\Extracted SFX")
End Sub
Public Sub SevenZip_CompressionProgressChanged(ByVal sender As Object, ByVal e As SevenZip.ProgressEventArgs) _
Handles SevenZip.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 SevenZip.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 SevenZip.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.
SevenZipArchiver(FileInfo) | Initializes a new instance of the SevenZipArchiver class. |
SevenZipArchiver(String) | Initializes a new instance of the SevenZipArchiver 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(IEnumerableString, String, CompressionMethod, CompressionLevel, Int32) | Builds a compressed multi-volume archive containing the source files or directories using the default compression parameters. |
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) |
Build(String, String, CompressionMethod, CompressionLevel, Int32) | Builds a compressed multi-volume archive containing the source file or directory using the default compression parameters. |
Build(IEnumerableString, String, String, CompressionMethod, CompressionLevel, Int32) | Builds a compressed multi-volume archive, with a password, containing the source files or directories using the default compression parameters. |
Build(String, String, String, CompressionMethod, CompressionLevel, Int32) | Builds a compressed multi-volume archive, with a password, containing the source file or directory using the default compression parameters. |
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) |