FileSystemEntry FileSystemEntry FileSystemEntry FileSystemEntry Struct

定義

提供 FileSystemInfo 的較低層級檢視,用於協助處理與篩選尋找結果。Provides a lower level view of FileSystemInfo to help process and filter find results.

public value class FileSystemEntry
public struct FileSystemEntry
type FileSystemEntry = struct
Public Structure FileSystemEntry
繼承
FileSystemEntryFileSystemEntryFileSystemEntryFileSystemEntry

屬性

Attributes Attributes Attributes Attributes

取得此項目的屬性。Gets the attributes for this entry.

CreationTimeUtc CreationTimeUtc CreationTimeUtc CreationTimeUtc

取得項目建立時間或最舊的可用時間戳記 (如果作業系統不支援建立時間戳記)。Gets the creation time for the entry or the oldest available time stamp if the operating system does not support creation time stamps.

Directory Directory Directory Directory

取得此項目所在目錄的完整路徑。Gets the full path of the directory this entry resides in.

FileName FileName FileName FileName

取得此項目的檔案名稱。Gets the file name for this entry.

IsDirectory IsDirectory IsDirectory IsDirectory

取得值,指出此項目是否為目錄。Gets a value that indicates whether this entry is a directory.

IsHidden IsHidden IsHidden IsHidden

取得值,指出檔案是否具有隱藏的屬性。Gets a value that indicates whether the file has the hidden attribute.

LastAccessTimeUtc LastAccessTimeUtc LastAccessTimeUtc LastAccessTimeUtc

取得表示上次存取時間 (UTC) 的日期時間位移。Gets a datetime offset that represents the last access time in UTC.

LastWriteTimeUtc LastWriteTimeUtc LastWriteTimeUtc LastWriteTimeUtc

取得表示上次寫入時間 (UTC) 的日期時間位移。Gets a datetime offset that represents the last write time in UTC.

Length Length Length Length

取得檔案的長度 (以位元組為單位)。Gets the length of the file, in bytes.

OriginalRootDirectory OriginalRootDirectory OriginalRootDirectory OriginalRootDirectory

取得在此函式中所指定列舉的根目錄。Gets the root directory for the enumeration as specified in the constructor.

RootDirectory RootDirectory RootDirectory RootDirectory

取得用於列舉的根目錄完整路徑。Gets the full path of the root directory used for the enumeration.

方法

ToFileSystemInfo() ToFileSystemInfo() ToFileSystemInfo() ToFileSystemInfo()

將這個執行個體的值轉換為 FileSystemInfoConverts the value of this instance to a FileSystemInfo.

ToFullPath() ToFullPath() ToFullPath() ToFullPath()

傳回尋找結果的完整路徑。Returns the full path of the find result.

ToSpecifiedFullPath() ToSpecifiedFullPath() ToSpecifiedFullPath() ToSpecifiedFullPath()

根據初始提供的路徑,傳回尋找結果的完整路徑。Returns the full path for the find results, based on the initially provided path.

適用於