IFileProvider.GetDirectoryContents(String) 方法

定義

列舉指定路徑上的目錄 (若有的話)。Enumerate a directory at the given path, if any.

public:
 Microsoft::Extensions::FileProviders::IDirectoryContents ^ GetDirectoryContents(System::String ^ subpath);
public Microsoft.Extensions.FileProviders.IDirectoryContents GetDirectoryContents (string subpath);
abstract member GetDirectoryContents : string -> Microsoft.Extensions.FileProviders.IDirectoryContents
Public Function GetDirectoryContents (subpath As String) As IDirectoryContents

參數

subpath
String

識別目錄的相對路徑。Relative path that identifies the directory.

傳回

IDirectoryContents

傳回目錄的內容。Returns the contents of the directory.

適用於