Example #1
0
 public static void ApplicationTrustCallMethods()
 {
     Policy.ApplicationTrust at = new Policy.ApplicationTrust();
     SecurityElement se = new SecurityElement("");
     at.FromXml(se);
     se = at.ToXml();
 }
        public static void CallMethods()
        {
            HostSecurityManager hsm = new HostSecurityManager();

            Policy.ApplicationTrust at = hsm.DetermineApplicationTrust(new Policy.Evidence(), new Policy.Evidence(), new Policy.TrustManagerContext());
            Policy.Evidence         e  = hsm.ProvideAppDomainEvidence(new Policy.Evidence());
        }
Example #3
0
        public static void ApplicationTrustCallMethods()
        {
            Policy.ApplicationTrust at = new Policy.ApplicationTrust();
            SecurityElement         se = new SecurityElement("");

            at.FromXml(se);
            se = at.ToXml();
        }
 public static void ApplicationTrustCollectionCallMethods()
 {
     Policy.ApplicationTrustCollection atc = (Policy.ApplicationTrustCollection)Activator.CreateInstance(typeof(Policy.ApplicationTrustCollection), true);
     Policy.ApplicationTrust at = new Policy.ApplicationTrust();
     int testint = atc.Add(at);
     Policy.ApplicationTrust[] atarray = new Policy.ApplicationTrust[1];
     atc.AddRange(atarray);
     atc.AddRange(atc);
     atc.Clear();
     atc.CopyTo(atarray, 0);
     Policy.ApplicationTrustEnumerator ate = atc.GetEnumerator();
     atc.Remove(at);
     atc.RemoveRange(atarray);
     atc.RemoveRange(atc);
 }
Example #5
0
        public static void ApplicationTrustCollectionCallMethods()
        {
            Policy.ApplicationTrustCollection atc = (Policy.ApplicationTrustCollection)Activator.CreateInstance(typeof(Policy.ApplicationTrustCollection), true);
            Policy.ApplicationTrust           at  = new Policy.ApplicationTrust();
            int testint = atc.Add(at);

            Policy.ApplicationTrust[] atarray = new Policy.ApplicationTrust[1];
            atc.AddRange(atarray);
            atc.AddRange(atc);
            atc.Clear();
            atc.CopyTo(atarray, 0);
            Policy.ApplicationTrustEnumerator ate = atc.GetEnumerator();
            atc.Remove(at);
            atc.RemoveRange(atarray);
            atc.RemoveRange(atc);
        }