Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
class System.​Security.​Policy.​Evidence
Assembly: System.Security.AccessControl
Inheritance: object → Evidence
Implemented Interfaces
- Collections.​ICollection (Inherits: IEnumerable)
Defines the set of information that constitutes input to security policy decisions. This class cannot be inherited.
Properties
public
int
Count
Gets the number of evidence objects in the evidence set.
public
bool
IsReadOnly
Gets a value indicating whether the evidence set is read-only.
public
bool
IsSynchronized
Gets a value indicating whether the evidence set is thread-safe.
public
bool
Locked
Gets or sets a value indicating whether the evidence is locked.
public
object
SyncRoot
Gets the synchronization root.
Methods
public
void
AddAssembly​(object id)
Adds the specified assembly evidence to the evidence set.
id
Any evidence object.
public
void
AddAssemblyEvidence​(T evidence)
Adds an evidence object of the specified type to the assembly-supplied evidence list.
evidence
The assembly evidence to add.
public
void
AddHost​(object id)
Adds the specified evidence supplied by the host to the evidence set.
id
Any evidence object.
public
void
AddHostEvidence​(T evidence)
Adds host evidence of the specified type to the host evidence collection.
evidence
The host evidence to add.
public
void
Clear​()
Removes the host and assembly evidence from the evidence set.
Returns A duplicate copy of this evidence object.
public
void
CopyTo​(Array array,
int index)
Copies evidence objects to an <see cref="T:System.Array" /> .
array
The target array to which to copy evidence objects.
index
The zero-based position in the array to which to begin copying evidence objects.
GetAssemblyEnumerator​()
Enumerates evidence provided by the assembly.
Returns An enumerator for evidence added by the <see cref="M:System.Security.Policy.Evidence.AddAssembly(System.Object)" /> method.
public
T
GetAssemblyEvidence​()
Gets assembly evidence of the specified type from the collection.
Returns Evidence of type <paramref name="T" /> in the assembly evidence collection.
GetEnumerator​()
Enumerates all evidence in the set, both that provided by the host and that provided by the assembly.
Returns An enumerator for evidence added by both the <see cref="M:System.Security.Policy.Evidence.AddHost(System.Object)" /> method and the <see cref="M:System.Security.Policy.Evidence.AddAssembly(System.Object)" /> method.
GetHostEnumerator​()
Enumerates evidence supplied by the host.
Returns An enumerator for evidence added by the <see cref="M:System.Security.Policy.Evidence.AddHost(System.Object)" /> method.
public
T
GetHostEvidence​()
Gets host evidence of the specified type from the collection.
Returns Evidence of type <paramref name="T" /> in the host evidence collection.
public
void
Merge​(Evidence evidence)
Merges the specified evidence set into the current evidence set.
evidence
The evidence set to be merged into the current evidence set.
public
void
RemoveType​(Type t)
Removes the evidence for a given type from the host and assembly enumerations.
t
The type of the evidence to be removed.
public
bool
Equals​(object obj)
Inherited from object
protected
void
Finalize​()
Inherited from object
public
int
GetHashCode​()
Inherited from object
protected
object
MemberwiseClone​()
Inherited from object
public
string
ToString​()
Inherited from object