FileSystemWatcher Network Disconnect

后端 未结 3 856
盖世英雄少女心
盖世英雄少女心 2021-02-06 00:19

I have a FileSystemWatcher monitoring a file on a network share. If an event occurs to make the share unavailable, maybe due to a network problem, the FileSystemWatcher becomes

3条回答
  •  青春惊慌失措
    2021-02-06 01:03

    Follow-up in this. At the suggestion of a Microsoft resource on the MSDN forums, I added this to Microsoft Connect.

    Key points from the feedback from Microsoft: - Error event is not only for internal buffer overflows - They will add the possibility of exposing the stopListening property to their list of customer suggestions

    Link here: http://connect.microsoft.com/VisualStudio/feedback/details/727934/filesystemwatcher-error-handling

提交回复
热议问题