|
-
Jan 28th, 2003, 07:37 AM
#1
Thread Starter
Lively Member
Check for declared permissions
How do I check if I have permissions to execute a function whose permissions have been set declaratively without executing it?
Thx!
-
Jan 28th, 2003, 06:16 PM
#2
-
Jan 28th, 2003, 09:10 PM
#3
If you know what permission it needs you can use
System.Security.SecurityManager.IsGranted() to check whether you a specific permission.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Jan 29th, 2003, 05:15 AM
#4
Thread Starter
Lively Member
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...
-
Jan 29th, 2003, 05:16 AM
#5
Thread Starter
Lively Member
PT Exorcist: Sim, Lisboa!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|