Class WimDirectoryEntry

Class WimDirectoryEntry

Tên không gian: Aspose.Zip.Wim Tổng hợp: Aspose.Zip.dll (25.5.0)

Nó đại diện cho một thư mục duy nhất trong file wim.

public sealed class WimDirectoryEntry : WimEntry

Inheritance

object WimEntry WimDirectoryEntry

Thành viên thừa kế

WimEntry.ToString() , WimEntry.Archive , WimEntry.Image , WimEntry.Parent , WimEntry.Name , WimEntry.ShortName , WimEntry.FullPath , WimEntry.ChangeTime , WimEntry.CreationTime , WimEntry.LastAccessTime , WimEntry.LastWriteTime , WimEntry.ModificationTime , WimEntry.FileAttributes , WimEntry.AlternateDataStreams , WimEntry.HardLink , WimEntry.HasHardLinks , WimEntry.IsDirectory , object.GetType() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()

Properties

AllEntries

Nhận tất cả các bài đăng của loại Aspose.Zip.Wim.WimEntry tạo thành thư mục một cách lặp lại.

public IEnumerable<wimentry> AllEntries { get; }

Giá trị bất động sản

IEnumerable < WimEntry >

Directories

Gets entries of Aspose.Zip.Wim.WimDirectoryEntry type constituting the directory.

public ReadOnlyCollection<wimdirectoryentry> Directories { get; }

Giá trị bất động sản

ReadOnlyCollection < WimDirectoryEntry >

Files

Gets entries of Aspose.Zip.Wim.WimFileEntry type constituting the directory.

public ReadOnlyCollection<wimfileentry> Files { get; }

Giá trị bất động sản

ReadOnlyCollection < WimFileEntry >

FilesAndDirectories

Gets entries of Aspose.Zip.Wim.WimEntry type constituting the directory.

public IEnumerable<wimentry> FilesAndDirectories { get; }

Giá trị bất động sản

IEnumerable < WimEntry >

Methods

ExtractToDirectory(String)

Loại bỏ tất cả các tập tin trong thư mục hiện tại vào thư mục được cung cấp.

public void ExtractToDirectory(string destinationDirectory)

Parameters

destinationDirectory string

Con đường đến thư mục để đặt các tập tin được lấy vào.

Examples

using (var archive = new WimArchive("archive.wim")) 
{ 
   archive.Images[0].RootDirectory.ExtractToDirectory(@"C:\\extracted");
}

Remarks

Nếu thư mục không tồn tại, nó sẽ được tạo ra.

Exceptions

ArgumentNullException

Con đường là null

PathTooLongException

Các con đường cụ thể, tên tệp hoặc cả hai đều vượt quá chiều dài tối đa được xác định bởi hệ thống. Ví dụ, trên nền tảng dựa trên Windows, con đường phải nhỏ hơn 248 ký tự và tên tệp phải nhỏ hơn 260 ký tự.

SecurityException

Người gọi không có giấy phép cần thiết để truy cập thư mục hiện có.

NotSupportedException

Nếu thư mục không tồn tại, con đường chứa một ký tự vỏ (:) không phải là một phần của một nhãn ổ đĩa (“C:”).

ArgumentException

con đường là một dây dài không, chỉ chứa không gian trắng, hoặc chứa một hoặc nhiều ký tự bất hợp pháp. bạn có thể truy vấn cho ký tự bất hợp pháp bằng cách sử dụng phương pháp System.IO.Path.GetInvalidPathChars. -or- con đường được đặt trước với, hoặc chứa, chỉ có một ký tự vỏ (:).

IOException

Danh mục được chỉ định theo con đường là một tệp. -or- Tên mạng không được biết.

InvalidDataException

Tài liệu đã bị phá hủy.

 Tiếng Việt