August 2003
Intermediate to advanced
496 pages
11h 59m
English
We have just seen several examples showing how the Evidence class can be used in a direct manner to make CAS decisions within your code according to the discovery of host and assembly evidence. The other way of approaching CAS is to let the code access permission classes automatically detect any mismatch between the current security policy and the permissions required by the running code. Then, if your program attempts something that it is not permitted to perform, a SecurityException is automatically thrown.
CAS programming usually involves using the classes derived from CodeAccessPermission, which are shown in the following list. Since these classes are not all contained within the ...
Read now
Unlock full access