Metodo UtilityZip(String, String, Boolean, Boolean, ActionInt32)
|
Permette di zippare un insieme di file.
Namespace: DedNet.CoreAssembly: DedNet (in DedNet.dll) Versione: 25.3.0.0 (25.3.0.0)
Sintassi public static void Zip(
string destFile,
string[] files,
bool showProgressBar = true,
bool structureFolder = true,
Action<int> stepperMethod = null
)
Public Shared Sub Zip (
destFile As String,
files As String(),
Optional showProgressBar As Boolean = true,
Optional structureFolder As Boolean = true,
Optional stepperMethod As Action(Of Integer) = Nothing
)
public:
static void Zip(
String^ destFile,
array<String^>^ files,
bool showProgressBar = true,
bool structureFolder = true,
Action<int>^ stepperMethod = nullptr
)
static member Zip :
destFile : string *
files : string[] *
?showProgressBar : bool *
?structureFolder : bool *
?stepperMethod : Action<int>
(* Defaults:
let _showProgressBar = defaultArg showProgressBar true
let _structureFolder = defaultArg structureFolder true
let _stepperMethod = defaultArg stepperMethod null
*)
-> unit
Parametri
- destFile String
- File .zip di destinazione
- files String
- Lista di file da archiviare
- showProgressBar Boolean (Optional)
- Mostra o meno la progressbar
- structureFolder Boolean (Optional)
- Riporta o meno la struttura delle cartelle
- stepperMethod ActionInt32 (Optional)
- Delegate per la gestione dell'avanzamento
Vedi anche