??

Aspose.ZIP for .NET API ???????????????? ??????????????????????????????????????????????????????????ZIP ????????????????

???????zip ?????????????????? Aspose.Zip ????????????????????????? ?? ???????????

API ?????

Aspose.ZIP API ?????????????????? Entry ????????????????????????????????????? API ?????????????????????????????????????????API ?????????????????????????????????????????

????????

?????????

???????API ????????? Archive ???????????????????? ??????????????????????????????????????

1var archive = ????????();

????????????????????????

???????????????????

???????????????????????????????????

1 var archive = new Archive(new ArchiveEntrySettings(new CompressionSettings(CompressionMethod.Store), new AesEcryptionSettings("p@s$", EncryptionMethod.AES256)));

????????

?????????????????????????? ?????? ???????

1archive.Save(??????ArchiveSaveOptions saveOptions = null)
2
3archive.Save(filePath, ArchiveSaveOptions saveOptions = null)

????????

?????????? ??????????? Archive ?????????? ????????????????

1FileStream zipFileStream = File.Open("myarchive.zip", FileMode.Open);
2????? ????? = ????????(zipFileStream);
3
4??? 
5
6????? archive = new Archive("myarchive.zip");

??????????????

?????????????????? ArchiveLoadOptions ???????????????

1????? archive = new Archive(sourceStream, new ArchiveLoadOptions() { DecryptiptionPassword = "p@s$" });
2
3???
4
5????? archive = new Archive("myarchive.zip", new ArchiveLoadOptions() { DecryptiptionPassword = "p@s$" });

????? ???????

?????????????

???????????? CreateEntry ???????????????????????????????????????????????????????? ??????????????? ???????????????????????????????????????????????????????????????????????????????

1CreateEntry(string name, Stream source, ArchiveEntrySettings newEntriesSettings) - ??????????? ?????????????????????????????? 1 ?????????????
2
3CreateEntry(string name, string path, ArchiveEntrySettings newEntriesSettings) - ???????????? ?????????????????????????????? 1 ?????????????
4
5CreateEntry(string name, FileInfo fileInfo, ArchiveEntrySettings newEntriesSettings) - ???????????? ?????????????????????????????? 1 ????????????? NTFS??????????????
6CreateEntry(string name, Stream source, ArchiveEntrySettings newEntriesSettings, FileSystemInfo fileInfo) - ??????????? ???????????????????????? 1 ????????????? NTFS ??????????????????????????????
Subscribe to Aspose Product Updates

Get monthly newsletters & offers directly delivered to your mailbox.