public void Remove(ApplicationTrust trust)
        {
            if (trust == null)
            {
                throw new ArgumentNullException("trust");
            }
            if (trust.ApplicationIdentity == null)
            {
                throw new ArgumentException(Environment.GetResourceString("Argument_ApplicationTrustShouldHaveIdentity"));
            }

            // Remove the trust decision of the application from the fusion store.
            if (m_storeBounded)
            {
                CommitApplicationTrust(trust.ApplicationIdentity, null);
            }
            else
            {
                AppTrusts.Remove(trust);
            }
        }
        public int Add(ApplicationTrust trust)
        {
            if (trust == null)
            {
                throw new ArgumentNullException("trust");
            }
            if (trust.ApplicationIdentity == null)
            {
                throw new ArgumentException(Environment.GetResourceString("Argument_ApplicationTrustShouldHaveIdentity"));
            }

            // Add the trust decision of the application to the fusion store.
            if (m_storeBounded)
            {
                CommitApplicationTrust(trust.ApplicationIdentity, trust.ToXml().ToString());
                return(-1);
            }
            else
            {
                return(AppTrusts.Add(trust));
            }
        }