Evidence
using System.Collections;
using System.Runtime.CompilerServices;
namespace System.Security.Policy
{
[System.Runtime.CompilerServices.NullableContext(1)]
[System.Runtime.CompilerServices.Nullable(0)]
public sealed class Evidence : ICollection, IEnumerable
{
[Obsolete("Evidence should not be treated as an ICollection. Please use GetHostEnumerator and GetAssemblyEnumerator to iterate over the evidence to collect a count.")]
public int Count {
get {
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_AccessControl);
}
}
public bool IsReadOnly {
get {
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_AccessControl);
}
}
public bool IsSynchronized {
get {
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_AccessControl);
}
}
public bool Locked {
get {
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_AccessControl);
}
set {
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_AccessControl);
}
}
public object SyncRoot {
get {
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_AccessControl);
}
}
public Evidence()
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_AccessControl);
}
[Obsolete("This constructor is obsolete. Please use the constructor which takes arrays of EvidenceBase instead.")]
public Evidence(object[] hostEvidence, object[] assemblyEvidence)
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_AccessControl);
}
public Evidence(Evidence evidence)
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_AccessControl);
}
public Evidence(EvidenceBase[] hostEvidence, EvidenceBase[] assemblyEvidence)
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_AccessControl);
}
[Obsolete("This method is obsolete. Please use AddAssemblyEvidence instead.")]
public void AddAssembly(object id)
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_AccessControl);
}
public void AddAssemblyEvidence<[System.Runtime.CompilerServices.Nullable(0)] T>(T evidence) where T : EvidenceBase
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_AccessControl);
}
[Obsolete("This method is obsolete. Please use AddHostEvidence instead.")]
public void AddHost(object id)
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_AccessControl);
}
public void AddHostEvidence<[System.Runtime.CompilerServices.Nullable(0)] T>(T evidence) where T : EvidenceBase
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_AccessControl);
}
public void Clear()
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_AccessControl);
}
[System.Runtime.CompilerServices.NullableContext(2)]
public Evidence Clone()
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_AccessControl);
}
[Obsolete("Evidence should not be treated as an ICollection. Please use the GetHostEnumerator and GetAssemblyEnumerator methods rather than using CopyTo.")]
public void CopyTo(Array array, int index)
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_AccessControl);
}
public IEnumerator GetAssemblyEnumerator()
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_AccessControl);
}
[System.Runtime.CompilerServices.NullableContext(0)]
[return: System.Runtime.CompilerServices.Nullable(2)]
public T GetAssemblyEvidence<T>() where T : EvidenceBase
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_AccessControl);
}
[Obsolete("GetEnumerator is obsolete. Please use GetAssemblyEnumerator and GetHostEnumerator instead.")]
public IEnumerator GetEnumerator()
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_AccessControl);
}
public IEnumerator GetHostEnumerator()
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_AccessControl);
}
[System.Runtime.CompilerServices.NullableContext(0)]
[return: System.Runtime.CompilerServices.Nullable(2)]
public T GetHostEvidence<T>() where T : EvidenceBase
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_AccessControl);
}
public void Merge(Evidence evidence)
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_AccessControl);
}
public void RemoveType(Type t)
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_AccessControl);
}
}
}