次の方法で共有


EmbeddedFileProvider Class

Definition

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

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

Constructors

EmbeddedFileProvider(Assembly, String)

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

EmbeddedFileProvider(Assembly)

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

Methods

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)

Locates a file at the given path.

Watch(String)

Embedded files do not change.

Applies to