assembly:...

  • Thread starter Thread starter Frank
  • Start date Start date
F

Frank

Hello,
could someone explain what that 'assembly' line does in the next MS example?
(from help: waitall method).
Thank you
Frank

using System;
using System.IO;
using System.Security.Permissions;
using System.Threading;

// Request permission to create and write files to C:\TestTest.
[assembly: FileIOPermissionAttribute(SecurityAction.RequestMinimum,
All = @"C:\TestTest")]

class Test
{
static void Main
 
could someone explain what that 'assembly' line does in the next MS example?
(from help: waitall method).

It associates the FileIOPermissionAttribute with the entire assembly,
not with the Test class that it otherwise would.




Mattias
 
Back
Top