Evidence and the Base Class Library

There are several evidence classes that the .NET Framework uses by default. They are listed and described in Table 5.2. All of the classes listed in Table 5.2 are contained in the System.Security.Policy namespace.

Table 5.2. Full List of Default Evidence Classes Used by the .NET Framework
Evidence Class Description
ApplicationDirectory This is the directory that contains the primary executing code. The .NET Framework will use this evidence along with URL evidence to determine if some assembly is in the application directory. It is very useful for ASP.NET, which sets this to the directory containing the base Web page for a Web application.
Hash This is a generic class that represents a hash value for an assembly. ...

Get .NET Framework Security now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.