IFileChangeNotificationSystem.StopMonitoring(String, Object) Method

Definition

Ends change monitoring.

public:
 void StopMonitoring(System::String ^ filePath, System::Object ^ state);
public void StopMonitoring (string filePath, object state);
abstract member StopMonitoring : string * obj -> unit
Public Sub StopMonitoring (filePath As String, state As Object)

Parameters

filePath
String

The path of the file or folder to stop monitoring. This should match a file path value that was passed in an earlier call to the StartMonitoring(String, OnChangedCallback, Object, DateTimeOffset, Int64) method.

state
Object

The state information that was originally supplied by the host environment during an earlier call to the StartMonitoring(String, OnChangedCallback, Object, DateTimeOffset, Int64) method.

Remarks

The StopMonitoring method must be called by custom caches and custom change monitors that are being disposed by the host environment in order to stop monitoring file paths and directories.

Applies to