What is the purpose of the PermissionSet attribute in the MSDN FileSystemWatcher class example?

Posted by Jeff on Stack Overflow See other posts from Stack Overflow or by Jeff
Published on 2010-05-26T16:17:56Z Indexed on 2010/05/26 16:51 UTC
Read the original article Hit count: 330

Filed under:
|

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

© Stack Overflow or respective owner

Related posts about c#

Related posts about permissionset