Class ArchiveSaveOptions
Class ArchiveSaveOptions
Namespace: Aspose.Zip.Saving
Assembly: Aspose.Zip.dll (25.1.0)
zip 아카이브를 저장하기 위한 옵션.
public class ArchiveSaveOptions
상속
상속된 멤버
object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
생성자
ArchiveSaveOptions()
public ArchiveSaveOptions()
속성
ArchiveComment
Zip 파일에 대한 선택적 주석을 가져오거나 설정합니다.
public string ArchiveComment { get; set; }
속성 값
CloseEntrySource
항목이 압축된 직후에 항목의 소스를 닫아야 하는지를 나타내는 값을 가져오거나 설정합니다.
public bool CloseEntrySource { get; set; }
속성 값
Encoding
파일 이름 및 기타 문자열을 바이트로 변환하기 위한 인코딩을 가져오거나 설정합니다.
public Encoding Encoding { get; set; }
속성 값
비고
설정되지 않으면 코드 페이지 437이 사용됩니다.
EncryptionOptions
기존 zip 아카이브를 저장하기 위한 암호화 설정을 가져오거나 설정합니다.
public EncryptionSettings EncryptionOptions { get; set; }
속성 값
예제
using (var archive = new Archive("plain.zip"))
{
archive.Save("encrypted.zip", new ArchiveSaveOptions() { EncryptionOptions = new AesEcryptionSettings("p@s$", EncryptionMethod.AES256) });
}
비고
암호화된 아카이브의 일반적인 구성을 위해 이 옵션을 사용하지 마십시오.
EventsBag
아카이브 저장 시 발생하는 이벤트의 컨테이너를 가져오거나 설정합니다.
public EventsBag EventsBag { get; set; }
속성 값
ParallelOptions
병렬 압축을 위한 설정을 가져오거나 설정합니다.
public ParallelOptions ParallelOptions { get; set; }
속성 값
비고
여러 아카이브 항목을 압축할 때 여러 CPU 코어를 사용하려면 이 값을 할당하십시오.
SelfExtractorOptions
자체 추출 아카이브에 대한 설정을 가져오거나 설정합니다.
public SelfExtractorOptions SelfExtractorOptions { get; set; }
속성 값
비고
대상 컴퓨터에 소프트웨어가 설치되지 않은 상태에서 아카이브를 추출하기 위한 실행 프로그램을 구성해야 하는 경우 이 값을 할당하십시오.