about Evidence

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
 
C

Christoph Basedau

Am 30.07.2010 17:50, schrieb Tony Johansson:
Can somebody explain the difference between section 1 code and section2 code
below.
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));

There's a short remarks section on host- vs assembly-evidence
in the Evidence Class msdn main doc:

<URL:http://msdn.microsoft.com/en-us/library/69f1bzsz.aspx>


Christoph
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top