mscorlib 2.0.0.0 4.0.0.0 System.Security.ISecurityEncodable System.Runtime.InteropServices.ComVisible(true)

Trust managers must implement the interface. The host calls the method to determine whether an application should be executed and which permissions should be granted to the application.

In the net_v40_long and later, there is only one trust manager, which can be a custom implementation of the interface. The default trust manager implementation prompts the user for permission to install the application and to elevate the permissions granted to the application. Other trust manager implementations might provide different user experiences. For example, an implementation might check an enterprise list for trusted applications instead of prompting the user for that information.

Determines whether an application should be executed and which set of permissions should be granted to it.

- Method
  2.0.0.0
  4.0.0.0
  System.Security.Policy.ApplicationTrust `` ``

  The method is called by the host to determine whether an application should be executed and which set of permissions it should be granted. returns an object with a 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 object also has an 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 collection.

  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 activation context for the application. The trust manager context for the application.