Reputation: 45771
I am confused about what does the Unrestricted property of .Net security, as mentioned here, http://msdn.microsoft.com/en-us/library/system.security.permissions.securityattribute.unrestricted.aspx we could give it full or non-full.
My confusion is for permission in a straightforward understanding, there should be only two status -- granted and not-granted, what does th full and non-full mean? My confusion is the word "unrestricted" makes me think that when unrestricted is false, it means limited/partial permission (the opposite of full is partial/limited). Appreciate if anyone could clarify.
thanks in advance, George
Upvotes: 0
Views: 302
Reputation: 81429
George,
i think the key to understanding this property is the following line:
true if full permission to the protected resource is declared; otherwise, false.
As i see it, there is a resource and the Unrestricted property, which is a boolean, simply tells you if you have full permission or not.
Imagine that Unrestricted is actually renamed to FullPermission. i'm not sure why they didn't do that in the first place.
-p
Upvotes: 1