??

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

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

API? ?? ??

Aspose.ZIP API? ????? ? ??? ??? ???? ??????. ??? ????, ??????, ?????? ??? ? ????. API? ???? ???? ? ?? ?? ??? ??????. ? ????? API?? ???? ??? ???? ??? ? ???? ?? ????? ?????.

???? ??

???? ?? ?

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

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

??? ????? ??? ?? ???????.

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

??? ?? ?? ??? ???? ?? ??? ???? ????? ??? ? ????.

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???? archive = new Archive(zipFileStream);
3
4?? 
5
6???? archive = new Archive("myarchive.zip");

???? ???? ??

ArchiveLoadOptions? ???? ????? ??? ????? ??? ? ????.

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

???? ?? ??

????? ?? ??

Archive? CreateEntry ???? ???? ????? ??? ??? ? ????. ? ???? ???? ????? ???? ?? ???? ?? ??? ?? ?? ?? ?? ????? ????? ??? ??? ? ????. ????? ?? ?? ??? ???? ????? ??? ????? ??? ?? ????.

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

Get monthly newsletters & offers directly delivered to your mailbox.