DirectoryInfoWrapper 类

定义

包装 DirectoryInfo 实例,并提供 DirectoryInfoBase 的实现。

public ref class DirectoryInfoWrapper : Microsoft::Extensions::FileSystemGlobbing::Abstractions::DirectoryInfoBase
public class DirectoryInfoWrapper : Microsoft.Extensions.FileSystemGlobbing.Abstractions.DirectoryInfoBase
type DirectoryInfoWrapper = class
    inherit DirectoryInfoBase
Public Class DirectoryInfoWrapper
Inherits DirectoryInfoBase
继承

构造函数

DirectoryInfoWrapper(DirectoryInfo)

初始化 DirectoryInfoWrapper 的实例。

DirectoryInfoWrapper(DirectoryInfo, Boolean)

初始化 DirectoryInfoWrapper 的实例。

属性

FullName

返回目录的完整路径。

Name

获取文件或目录的名称。

ParentDirectory

返回父目录。

方法

EnumerateFileSystemInfos()

枚举该目录中的所有文件和目录。

Equals(Object)

确定指定对象是否等于当前对象。

(继承自 Object)
GetDirectory(String)

返回表示子目录的 DirectoryInfoBase 实例。

GetFile(String)

返回表示目录中文件的 FileInfoBase 实例。

GetHashCode()

作为默认哈希函数。

(继承自 Object)
GetType()

获取当前实例的 Type

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。

(继承自 Object)
ToString()

返回表示当前对象的字符串。

(继承自 Object)

适用于