Interface IArchive
이름 공간 : Aspose.Zip 모임: Aspose.Zip.dll (25.5.0)
이 인터페이스는 파일을 나타냅니다.
public interface IArchive : IDisposable
Implements
Properties
FileEntries
그것은 아카이브를 구성하는 Aspose.Zip.IArchiveFileEntry 형식의 입력을 얻습니다.
IEnumerable<iarchivefileentry> FileEntries { get; }
부동산 가치
IEnumerable <에 대한 정보 IArchiveFileEntry >
Remarks
단지 압축을 위한 아카이브, 예를 들어 gzip, bzip2, lzip, lzma, xz, z는 단일 기록으로 구성되어 있습니다 - 아카이브 자체.
Format
아카이브 형식을 입력합니다.
ArchiveFormat Format { get; }
부동산 가치
Methods
ExtractToDirectory(스트리트)
아카이브에 있는 모든 파일을 제공된 디렉토리로 추출합니다.
void ExtractToDirectory(string destinationDirectory)
Parameters
destinationDirectory
string
디렉토리로 이동하여 추출된 파일을 입력합니다.
Remarks
디렉토리가 존재하지 않는다면, 그것은 만들어집니다.
Exceptions
destinationDirectory’ is null.
지정된 경로, 파일 이름 또는 둘 다 시스템에 의해 정의 된 최대 길이를 초과합니다.예를 들어, Windows 기반 플랫폼에서 경로는 248 문자 미만이어야하며 파일 이름은 260 문자 미만이어야합니다.
호출자는 기존 디렉토리에 액세스 할 수있는 필요한 허가를 가지고 있지 않습니다.
디렉토리가 존재하지 않는 경우, 경로는 드라이브 라벨의 일부가 아닌 콜론 캐릭터 (:)를 포함합니다 (“C:”).
destinationDirectory’ is a zero-length string, contains only white space, or contains one or more invalid characters. You can query for invalid characters by using the System.IO.Path.GetInvalidPathChars method. -or- path is prefixed with, or contains, only a colon character (:).
경로에 의해 지정된 디렉토리는 파일입니다. -or- 네트워크 이름은 알려지지 않습니다.