共用方式為


DirectoryInfoBase.GetDirectory(String) 方法

定義

傳回表示子目錄的 DirectoryInfoBase 執行個體。

public:
 abstract Microsoft::Extensions::FileSystemGlobbing::Abstractions::DirectoryInfoBase ^ GetDirectory(System::String ^ path);
public abstract Microsoft.Extensions.FileSystemGlobbing.Abstractions.DirectoryInfoBase? GetDirectory (string path);
abstract member GetDirectory : string -> Microsoft.Extensions.FileSystemGlobbing.Abstractions.DirectoryInfoBase
Public MustOverride Function GetDirectory (path As String) As DirectoryInfoBase

參數

path
String

目錄名稱。

傳回

DirectoryInfoBase實例,即使目錄不存在也一樣。

適用於