NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

FileSystemWatcher.ChangedFilter

Gets or sets the type of changes to watch for.

[Visual Basic]
Overridable Public Property ChangedFilter As ChangedFilters
[C#]
public ChangedFilters ChangedFilter {virtual get; virtual set;}
[C++]
public: __property virtual ChangedFilters get_ChangedFilter();
public: __property virtual void set_ChangedFilter(ChangedFilters);
[JScript]
public function get ChangedFilter() : ChangedFilters;
public function set ChangedFilter(ChangedFilters);

Property Value

One of the ChangedFilters values. The default is LastWrite.

Remarks

You can combine the members of the ChangedFilters enumeration to watch for more than one type of change at a time. For example, you can watch for any changes in the the size of a file or folder, and for any changes in the LastWrite time. This raises an event anytime there is a change in the file or folder size, or a change in the LastWrite time of the file or folder.

This is one way to filter out unwanted notifications. For more information on filtering out unwanted notifications, see the Filter, IncludeSubdirectories, InternalBufferSize, and Target properties.

See Also

FileSystemWatcher Class | FileSystemWatcher Members | System.IO Namespace | ChangedFilters | Filter | IncludeSubdirectories | InternalBufferSize | Target