Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

IFileProvider.Watch(String) Method

Definition

Namespace:
Microsoft.Extensions.FileProviders
Assembly:
Microsoft.Extensions.FileProviders.Abstractions.dll
Package:
Microsoft.Extensions.FileProviders.Abstractions v11.0.0-preview.5.26302.115
Source:
IFileProvider.cs
Source:
IFileProvider.cs
Source:
IFileProvider.cs

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Creates an IChangeToken for the specified filter.

public:
 Microsoft::Extensions::Primitives::IChangeToken ^ Watch(System::String ^ filter);
public Microsoft.Extensions.Primitives.IChangeToken Watch(string filter);
abstract member Watch : string -> Microsoft.Extensions.Primitives.IChangeToken
Public Function Watch (filter As String) As IChangeToken

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


Feedback

Was this page helpful?