NullFileProvider Class

Definition

An empty file provider with no contents.

C#
public class NullFileProvider : Microsoft.Extensions.FileProviders.IFileProvider
Inheritance
NullFileProvider
Implements

Constructors

Methods

GetDirectoryContents(String)

Enumerates a nonexistent directory.

GetFileInfo(String)

Locates a nonexistent file.

Watch(String)

Returns a IChangeToken that monitors nothing.

Applies to

Product Versions
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Standard 2.0 (package-provided)