NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

ApplicationDirectory Class

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

Remarks

This evidence is only provided when the application directory is set as described above.

Requirements

Namespace: System.Security.Policy

Assembly: mscorlib.dll

See Also

ApplicationDirectory Members | System.Security.Policy Namespace