T
Tony Johansson
Hello!
Can somebody explain the difference between section 1 code and section2 code
below.
I have added the docs for each one but can't fully understand the
difference.
Section1 code
//Adds the specified assembly evidence to the evidence set.
Evidence evidence = new Evidence();
evidence.AddAssembly(new Zone(SecurityZone.Intranet));
Section2 code
//Adds the specified evidence supplied by the host to the evidence set.
Evidence evidence = new Evidence();
evidence.AddHost(new Zone(SecurityZone.Intranet));
//Tony
Can somebody explain the difference between section 1 code and section2 code
below.
I have added the docs for each one but can't fully understand the
difference.
Section1 code
//Adds the specified assembly evidence to the evidence set.
Evidence evidence = new Evidence();
evidence.AddAssembly(new Zone(SecurityZone.Intranet));
Section2 code
//Adds the specified evidence supplied by the host to the evidence set.
Evidence evidence = new Evidence();
evidence.AddHost(new Zone(SecurityZone.Intranet));
//Tony