code access security

Posted by rkrauter on Stack Overflow See other posts from Stack Overflow or by rkrauter
Published on 2010-04-24T23:06:19Z Indexed on 2010/04/24 23:13 UTC
Read the original article Hit count: 271

Filed under:
|
|

Why do I need to Demand permission? Why can't it simply fail (commenting out the .Demand() call)?

ref: http://support.microsoft.com/kb/315529 Thanks!

try 
{
// Demand the permission to access the C:\Temp folder.
permFileIO.Demand();
resultText.Append("The demand for permission to access the C:\\Temp folder succeeded.\n\n");
}

© Stack Overflow or respective owner

Related posts about clr

Related posts about c#