Evidence.AddHost Method (Object)
Adds the specified evidence supplied by the host to the evidence set.
Assembly: mscorlib (in mscorlib.dll)
Use this method for evidence supplied by the host.
This method does not perform a check to prevent adding duplicate types of evidence. Many host evidence objects can exist at the same time.
The following code example shows the use of the Evidence class.method. This example is part of a larger example provided for the
Url url = new Url("http://www.treyresearch.com"); Console.WriteLine("Adding host evidence " + url.ToString()); ev2a.AddHost(url); Evidence ev2b = new Evidence(ev2a); Console.WriteLine("Copy evidence into new evidence"); IEnumerator enum1 = ev2b.GetHostEnumerator(); enum1.MoveNext(); Console.WriteLine(enum1.Current.ToString());
Available since 1.1