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)

適用於