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