It's not C++. FileSystemWatcher is a managed class and C++ does not support managed code.
What you're talking about is C++/CLI, a Microsoft-created standard language. However, this is not C++.