IFileProvider.Watch(String) Method

Definition

Creates an IChangeToken for the specified filter.

C#
public Microsoft.Extensions.Primitives.IChangeToken Watch(string filter);

Parameters

filter
String

A filter string used to determine what files or folders to monitor. Examples: /*.cs, ., subFolder//*.cshtml.

Returns

An IChangeToken that is notified when a file matching filter is added, modified, or deleted.

Applies to

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