?????

Aspose.ZIP ??? .NET API ???????? ????????? ?? ?????????? ? ?????????? ???????? ? ????? ????????? ??? ???????????? ????-???? ????? ????????? ???????. ???? ???????? ?????????? ???????? ????? ???????? ZIP-????????.

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

??????? ??????? API

Aspose.ZIP API ?????????????? ???????????????? ??????? ???????? ? ?????? ?? Entry. ?????(?) ????? ????????, ??????????, ? ????? ???????? ? ??????. API ??????? ?????? ? ??????? ? ???? ????????. ??? ?????? ??? ???????? ??? ????? ????? ?? ??????, ?????? API, ?? ???? ????????????.

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

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

????? ????? ???????? ?? ????????? ????? Archive, ?????????? API. ??????? ????? ????? ???????? ?? ????????? ????? ?????, ?? ???????? ? ?????????? ???????? ????.

1var archive = new 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(???? ?? ?????, ArchiveSaveOptions saveOptions = null)

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

?????? ????? ???????????, ????????? ???????? ????? ??? ???? ?? Archive ???????????? ?????????.

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

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

??????, ???????? ???????, ????? ???????????, ???????? ArchiveLoadOptions

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

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

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

?????? ????? ???????? ?? ?????? ?? ????????? ?????? CreateEntry ??????. ??????????????, ????????????? ??? ???????, ?????????? ?????????? ?????? ? ?????? ? ????? ?? ????? ??? ?????? ????? ?? ??????????? ???????????? Archive Entry. ????? ? ???????? ????? ????? ?????? ?? ??????, ???????? ??????????? ????? ?? ????????.

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

Get monthly newsletters & offers directly delivered to your mailbox.