Determines whether an application should be executed and which set of permissions should be granted to it.
An object that contains security decisions about the application.
The IApplicationTrustManager.DetermineApplicationTrust(ActivationContext, TrustManagerContext) method is called by the host to determine whether an application should be executed and which set of permissions it should be granted. IApplicationTrustManager.DetermineApplicationTrust(ActivationContext, TrustManagerContext) returns an System.Security.Policy.ApplicationTrust object with a ApplicationTrust.DefaultGrantSet property that contains a permission set representing the permissions to be granted to each assembly executing within the context of the application. The granted permissions do not apply to assemblies in the global assembly cache. The System.Security.Policy.ApplicationTrust object also has an ApplicationTrust.IsApplicationTrustedToRun property that the trust manager sets to indicate whether the application should be trusted. If the trust manager indicates that the application can be trusted, the host activates the application and grants its assemblies the set of permissions provided in the System.Security.Policy.ApplicationTrust collection.