Note

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

Access to this page requires authorization. You can try .

PhysicalFileProvider.Watch(String) Method

Definition

Namespace:
Microsoft.Extensions.FileProviders
Assembly:
Microsoft.Extensions.FileProviders.Physical.dll
Package:
Microsoft.Extensions.FileProviders.Physical v11.0.0-preview.5.26302.115
Source:
PhysicalFileProvider.cs
Source:
PhysicalFileProvider.cs
Source:
PhysicalFileProvider.cs
Source:
PhysicalFileProvider.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 a IChangeToken for the specified filter.

Globbing patterns are interpreted by Matcher.

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

Parameters

filter
String

Filter string used to determine what files or directories to monitor. Example: /*.cs, ., subDirectory//*.cshtml.

Returns

An IChangeToken that is notified when a file or directory matching filter is added, modified, or deleted. Returns a NullChangeToken if filter has invalid filter characters or if filter is an absolute path or outside the root directory specified in the constructor PhysicalFileProvider(String).

Implements

Applies to


Feedback

Was this page helpful?