System.Security.HostSecurityManager.DetermineApplicationTrust Method

Determines whether an application should be executed.

Syntax

public virtual System.Security.Policy.ApplicationTrust DetermineApplicationTrust (System.Security.Policy.Evidence applicationEvidence, System.Security.Policy.Evidence activatorEvidence, System.Security.Policy.TrustManagerContext context)

Parameters

applicationEvidence
The evidence for the application to be activated.
activatorEvidence
Optionally, the evidence for the activating application domain.
context
The trust context.

Returns

An object that contains trust information about the application.

Remarks

This method can be overridden by a derived class. The base implementation calls the application security manager to determine if the application should be executed.

The base implementation does not use the activator evidence. However, an overridden implementation could use the activator evidence to determine the security evidence for the application domain attempting to activate the application.

Requirements

Namespace: System.Security
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0