PhysicalFileProvider.Watch(String) Method
Definition
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 .
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 folders to monitor. Example: /*.cs, ., subFolder//*.cshtml.
Returns
An IChangeToken that is notified when a file 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 .
Implements
Applies to
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
.NET