EmbeddedFileProvider.GetDirectoryContents(String) Method

Definition

Enumerate a directory at the given path, if any. This file provider uses a flat directory structure. Everything under the base namespace is considered to be one directory.

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

Parameters

subpath
String

The path that identifies the directory

Returns

Contents of the directory. Caller must check Exists property. A NotFoundDirectoryContents if no resources were found that match subpath

Implements

Applies to