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 即使目录不存在。

适用于