FileSystemEntry 结构
定义
提供 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
- 继承
属性
| Attributes |
获取此项的属性。Gets the attributes for this entry. |
| 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 |
获取此项所处的目录的完整路径。Gets the full path of the directory this entry resides in. |
| FileName |
获取此项的文件名。Gets the file name for this entry. |
| IsDirectory |
获取一个值,该值指示此项是否为目录。Gets a value that indicates whether this entry is a directory. |
| IsHidden |
获取一个值,该值指示文件是否具有隐藏属性。Gets a value that indicates whether the file has the hidden attribute. |
| LastAccessTimeUtc |
获取表示 UTC 格式的上次访问时间的日期/时间偏移量。Gets a datetime offset that represents the last access time in UTC. |
| LastWriteTimeUtc |
获取表示 UTC 格式的上次写入时间的日期/时间偏移量。Gets a datetime offset that represents the last write time in UTC. |
| Length |
获取文件的长度(以字节为单位)。Gets the length of the file, in bytes. |
| OriginalRootDirectory |
获取构造函数中指定的枚举的根目录。Gets the root directory for the enumeration as specified in the constructor. |
| RootDirectory |
获取用于枚举的根目录的完整路径。Gets the full path of the root directory used for the enumeration. |
方法
| ToFileSystemInfo() |
将此实例的值转换为 FileSystemInfo。Converts the value of this instance to a FileSystemInfo. |
| ToFullPath() |
返回查找结果的完整路径。Returns the full path of the find result. |
| ToSpecifiedFullPath() |
基于最初提供的路径返回查找结果的完整路径。Returns the full path for the find results, based on the initially provided path. |