Share via


PhysicalFilesWatcher Class

Definition

A file watcher that watches a physical filesystem for changes.

Triggers events on IChangeToken when files are created, change, renamed, or deleted.

public ref class PhysicalFilesWatcher : IDisposable
public class PhysicalFilesWatcher : IDisposable
type PhysicalFilesWatcher = class
    interface IDisposable
Public Class PhysicalFilesWatcher
Implements IDisposable
Inheritance
PhysicalFilesWatcher
Implements

Constructors

PhysicalFilesWatcher(String, FileSystemWatcher, Boolean)

Initializes an instance of PhysicalFilesWatcher that watches files in root. Wraps an instance of FileSystemWatcher

PhysicalFilesWatcher(String, FileSystemWatcher, Boolean, ExclusionFilters)

Initializes an instance of PhysicalFilesWatcher that watches files in root. Wraps an instance of FileSystemWatcher

Methods

CreateFileChangeToken(String)

Creates an instance of IChangeToken for all files and directories that match the filter

Globbing patterns are relative to the root directory given in the constructor PhysicalFilesWatcher(String, FileSystemWatcher, Boolean). Globbing patterns are interpreted by Matcher.

Dispose()

Disposes the provider. Change tokens may not trigger after the provider is disposed.

Dispose(Boolean)

Disposes the provider.

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to