What is the purpose of the PermissionSet attribute in the MSDN FileSystemWatcher class example?
- by Jeff
On the MSDN FileSystemWatcher Class page, it includes an example with the following class attribute:
[PermissionSet(SecurityAction.Demand, Name="FullTrust")]
What is the purpose of this? When should it be included or not included?
The FileSystemWatcher Class help page is here: http://msdn.microsoft.com/en-us/library/system.io.filesystemwatcher.aspx