EmbeddedFileProvider EmbeddedFileProvider EmbeddedFileProvider Class

Definition

Looks up files using embedded resources in the specified assembly. This file provider is case sensitive.

public class EmbeddedFileProvider : Microsoft.Extensions.FileProviders.IFileProvider
type EmbeddedFileProvider = class
    interface IFileProvider
Public Class EmbeddedFileProvider
Implements IFileProvider
Inheritance
EmbeddedFileProviderEmbeddedFileProviderEmbeddedFileProvider
Implements

Constructors

EmbeddedFileProvider(Assembly) EmbeddedFileProvider(Assembly) EmbeddedFileProvider(Assembly)

Initializes a new instance of the EmbeddedFileProvider class using the specified assembly with the base namespace defaulting to the assembly name.

EmbeddedFileProvider(Assembly, String) EmbeddedFileProvider(Assembly, String) EmbeddedFileProvider(Assembly, String)

Initializes a new instance of the EmbeddedFileProvider class using the specified assembly and base namespace.

Methods

GetDirectoryContents(String) GetDirectoryContents(String) GetDirectoryContents(String)

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.

GetFileInfo(String) GetFileInfo(String) GetFileInfo(String)

Locates a file at the given path.

Watch(String) Watch(String) Watch(String)

Embedded files do not change.

Applies to