﻿<?xml version="1.0" encoding="utf-8"?><Type Name="IApplicationTrustManager" FullName="System.Security.Policy.IApplicationTrustManager"><TypeSignature Language="C#" Value="public interface IApplicationTrustManager : System.Security.ISecurityEncodable" /><TypeSignature Language="ILAsm" Value=".class public interface auto ansi abstract IApplicationTrustManager implements class System.Security.ISecurityEncodable" /><AssemblyInfo><AssemblyName>mscorlib</AssemblyName><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><Interfaces><Interface><InterfaceName>System.Security.ISecurityEncodable</InterfaceName></Interface></Interfaces><Attributes><Attribute><AttributeName>System.Runtime.InteropServices.ComVisible(true)</AttributeName></Attribute></Attributes><Docs><since version=".NET 2.0" /><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>Trust managers must implement the <see cref="T:System.Security.Policy.IApplicationTrustManager" /> interface. The host calls the <see cref="M:System.Security.Policy.IApplicationTrustManager.DetermineApplicationTrust(System.ActivationContext,System.Security.Policy.TrustManagerContext)" /> method to determine whether an application should be executed and which permissions should be granted to the application.</para><para>In the net_v40_long and later, there is only one trust manager, which can be a custom implementation of the <see cref="T:System.Security.Policy.IApplicationTrustManager" /> 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. </para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Determines whether an application should be executed and which set of permissions should be granted to it.</para></summary></Docs><Members><Member MemberName="DetermineApplicationTrust"><MemberSignature Language="C#" Value="public System.Security.Policy.ApplicationTrust DetermineApplicationTrust (ActivationContext activationContext, System.Security.Policy.TrustManagerContext context);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance class System.Security.Policy.ApplicationTrust DetermineApplicationTrust(class System.ActivationContext activationContext, class System.Security.Policy.TrustManagerContext context) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Security.Policy.ApplicationTrust</ReturnType></ReturnValue><Parameters><Parameter Name="activationContext" Type="System.ActivationContext" /><Parameter Name="context" Type="System.Security.Policy.TrustManagerContext" /></Parameters><Docs><since version=".NET 2.0" /><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>The <see cref="M:System.Security.Policy.IApplicationTrustManager.DetermineApplicationTrust(System.ActivationContext,System.Security.Policy.TrustManagerContext)" /> method is called by the host to determine whether an application should be executed and which set of permissions it should be granted. <see cref="M:System.Security.Policy.IApplicationTrustManager.DetermineApplicationTrust(System.ActivationContext,System.Security.Policy.TrustManagerContext)" /> returns an <see cref="T:System.Security.Policy.ApplicationTrust" /> object with a <see cref="P:System.Security.Policy.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 <see cref="T:System.Security.Policy.ApplicationTrust" /> object also has an <see cref="P:System.Security.Policy.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 <see cref="T:System.Security.Policy.ApplicationTrust" /> collection.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Determines whether an application should be executed and which set of permissions should be granted to it.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>An object that contains security decisions about the application.</para></returns><param name="activationContext"><attribution license="cc4" from="Microsoft" modified="false" />The activation context for the application.</param><param name="context"><attribution license="cc4" from="Microsoft" modified="false" />The trust manager context for the application.</param></Docs></Member></Members></Type>