 | SevenZipExZipFile 方法 (ListString, String, String) |
Sweet 开发框架
压缩文件
命名空间:
Sweet.Common
程序集:
Sweet.Common (在 Sweet.Common.dll 中) 版本:3.10.1.0 (3.10.1.0)
语法public static bool ZipFile(
List<string> fileNames,
string zipFileName,
string password = ""
)
Public Shared Function ZipFile (
fileNames As List(Of String),
zipFileName As String,
Optional password As String = ""
) As Boolean
static member ZipFile :
fileNames : List<string> *
zipFileName : string *
?password : string
(* Defaults:
let _password = defaultArg password ""
*)
-> bool
参数
- fileNames
- 类型:System.Collections.GenericListString
被压缩文件的文件列表 - zipFileName
- 类型:SystemString
压缩后文件名 - password (Optional)
- 类型:SystemString
密码
返回值
类型:
Boolean返回值为true:成功 false:失败
参见