assembly:...

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Frank

    assembly:...

    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.Threadin g;

    // Request permission to create and write files to C:\TestTest.
    [assembly: FileIOPermissio nAttribute(Secu rityAction.Requ estMinimum,
    All = @"C:\TestTes t")]

    class Test
    {
    static void Main


  • Mattias Sjögren

    #2
    Re: assembly:...

    [color=blue]
    >could someone explain what that 'assembly' line does in the next MS example?
    >(from help: waitall method).[/color]

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




    Mattias

    --
    Mattias Sjögren [MVP] mattias @ mvps.org
    http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
    Please reply only to the newsgroup.

    Comment

    Working...