ArchiverAdd(IEnumerableString, String, String, CompressionMethod, CompressionLevel) Method
Appends the source file or directory into the specified compressed archive, with a password, using the specified compression parameters.
Namespace: DevCase.ThirdParty.SevenZipSharpAssembly: DevCase.net48.ThirdParty.SevenZipsharp (in DevCase.net48.ThirdParty.SevenZipsharp.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public virtual string Add(
IEnumerable<string> sourceFileOrDirs,
string outputFilepath,
string password,
CompressionMethod compressionMethod,
CompressionLevel compressionLevel
)
Public Overridable Function Add (
sourceFileOrDirs As IEnumerable(Of String),
outputFilepath As String,
password As String,
compressionMethod As CompressionMethod,
compressionLevel As CompressionLevel
) As String
Dim instance As Archiver
Dim sourceFileOrDirs As IEnumerable(Of String)
Dim outputFilepath As String
Dim password As String
Dim compressionMethod As CompressionMethod
Dim compressionLevel As CompressionLevel
Dim returnValue As String
returnValue = instance.Add(sourceFileOrDirs,
outputFilepath, password, compressionMethod,
compressionLevel)
public:
virtual String^ Add(
IEnumerable<String^>^ sourceFileOrDirs,
String^ outputFilepath,
String^ password,
CompressionMethod compressionMethod,
CompressionLevel compressionLevel
)
abstract Add :
sourceFileOrDirs : IEnumerable<string> *
outputFilepath : string *
password : string *
compressionMethod : CompressionMethod *
compressionLevel : CompressionLevel -> string
override Add :
sourceFileOrDirs : IEnumerable<string> *
outputFilepath : string *
password : string *
compressionMethod : CompressionMethod *
compressionLevel : CompressionLevel -> string
No code example is currently available or this language may not be supported.
- sourceFileOrDirs IEnumerableString
-
The source files or diretories to append.
- outputFilepath String
-
The path of the output file to create.
- password String
-
The password.
- compressionMethod CompressionMethod
-
The compression method.
- compressionLevel CompressionLevel
-
The compression level.
String
The full path of the resulting compressed archive.
Note: Some functionalities of this assembly may require to install one or all of the listed NuGet packages:
Squid-Box.SevenZipSharp
Exception
|
Failed to extract, maybe the provided password does not match?.
|