Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

FileSystemWatcher.Filters - "Filters is not a member of FileSystemWatcher"

Status
Not open for further replies.

IlyaRabyy

Programmer
Nov 9, 2010
566
0
16
US
Colleagues,
The subject line tells what the problem is. However, the picture worth 1,000 words, so - here it is:

2024-03-18_Filters_is_not_member_of_FileSystemWatcher_yejnps.jpg


... which contradicts the on-line VS Documentation (
My project is based on .NET Framework 4.8. The "Filters" property appears in .NET 8 - which I do not have (well, obviously!)

2024-03-18_Filters_is_not_member_of_FileSystemWatcher_DotNet_Version_i5mz9p.jpg


What, aside from installing NET 8, can I do to have a list/collection of filters instead of just one?

AHWBGA!

Regards,

Ilya
 
But the doc you linked above states, that:
Gets the collection of all the filters ...
and you try not to get, but to set this property.
 
>which contradicts the on-line VS Documentation

It doesn't. The documentation clearly shows that Filters is only available in .Net Core, not .Net Framework

And if you do switch to Core, Filters is read-only.

I presume you were hoping to be able to set multiple filters (e.g both *.txt and *.docx), but you do that through the Filters Add method, not by trying to directly set the Filters property

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top