The domain host may associate a file directory with an application domain. This evidence class provides the application directory, if set, as evidence for policy evaluation.
For a server (ASP+) application this is typically set to the directory containing the base page of the application; for a shell hosted application, the directory of the "main" EXE file. IE Host web applications do not have an application directory. To associate app directory with app domain we do the following:
[C#]
appDomain.SetData(AppDomainConfig.APPLICATION_BASE, "file://dir/subdir/");
Object
ApplicationDirectory
[Visual Basic] NotInheritable Public Class ApplicationDirectory [C#] public sealed class ApplicationDirectory [C++] public __gc __sealed class ApplicationDirectory [JScript] public class ApplicationDirectory
This evidence is only provided when the application directory is set as described above.
Namespace: System.Security.Policy
Assembly: mscorlib.dll
ApplicationDirectory Members | System.Security.Policy Namespace