assembly:...

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
 
M

Mattias Sjögren

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top