June 2003
Intermediate to advanced
714 pages
22h 8m
English
Evidence
public sealed class Evidence : ICollection, IEnumerable { // Public Constructors public Evidence( ); public Evidence(Evidenceevidence); public Evidence(object[ ]hostEvidence, object[ ]assemblyEvidence); // Public Instance Properties public int Count{get; } // implements ICollection public bool IsReadOnly{get; } public bool IsSynchronized{get; } // implements ICollection public bool Locked{set; get; } public object SyncRoot{get; } // implements ICollection // Public Instance Methods public void AddAssembly(objectid); public void AddHost(objectid); public void CopyTo(Arrayarray, intindex); // implements ICollection public IEnumerator GetAssemblyEnumerator( ); public IEnumerator GetEnumerator( ); // implements IEnumerable public IEnumerator GetHostEnumerator( ); public void Merge(Evidenceevidence); }
The Evidence class is a specialized collection
used to contain evidence objects. The Evidence
class actually contains two sets of evidence objects: a collection of
host evidence and a collection of assembly evidence. Host evidence is
the primary type of evidence used as input by the runtime to drive
security policy resolution. The runtime, or possibly a trusted host,
specifies the host evidence. Host evidence is added to the
Evidence collection using the AddHost(
) method and accessed through the
GetHostEnumerator( ) method.
Assembly evidence is normally specified at build time by the assembly developer and embedded in the assembly file as a serialized resource. ...