June 2003
Intermediate to advanced
800 pages
34h 20m
English
You want to determine the evidence that the .NET security infrastructure uses to determine the permissions of a piece of code.
Create a System.Reflection.Assembly object, and walk through all the items in the Evidence collection.
It’s often useful to be able to read the evidence that .NET attaches to an assembly. This is particularly important when debugging code access security settings with a distributed application that uses reflection to load assemblies from the Internet. (See recipe Load an Assembly from a Remote Location for a specific example.)
You can retrieve the evidence for any assembly through the Assembly.Evidence property. This property returns a System.Security.Policy.Evidence ...
Read now
Unlock full access