How do I check if I have permissions to execute a function whose permissions have been set declaratively without executing it?
Thx!
Printable View
How do I check if I have permissions to execute a function whose permissions have been set declaratively without executing it?
Thx!
ehs portugues? lol
If you know what permission it needs you can use
System.Security.SecurityManager.IsGranted() to check whether you a specific permission.
Well, that's exactly what I need to know: What permissions the method needs to run or, how to test if I have permissions to execute the method without executing it.
I've read in an article from msdnmag, (I think is this one:)
http://msdn.microsoft.com/msdnmag/is...S/default.aspx
where they say it's possible to know the permissions from the assembly file (dll), but I don't find where...
PT Exorcist: Sim, Lisboa!