code access security
- by rkrauter
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");
}