/
CodeAccessPermission.cs
32 lines (31 loc) · 1.52 KB
/
CodeAccessPermission.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
namespace System.Security
{
#if NETCOREAPP
[Obsolete(Obsoletions.CodeAccessSecurityMessage, DiagnosticId = Obsoletions.CodeAccessSecurityDiagId, UrlFormat = Obsoletions.SharedUrlFormat)]
#endif
public abstract partial class CodeAccessPermission : IPermission, ISecurityEncodable, IStackWalk
{
protected CodeAccessPermission() { }
public void Assert() { }
public abstract IPermission Copy();
public void Demand() { }
[Obsolete]
public void Deny() { throw new PlatformNotSupportedException(SR.PlatformNotSupported_CAS); }
public override bool Equals(object obj) => base.Equals(obj);
public abstract void FromXml(SecurityElement elem);
public override int GetHashCode() => base.GetHashCode();
public abstract IPermission Intersect(IPermission target);
public abstract bool IsSubsetOf(IPermission target);
public void PermitOnly() { throw new PlatformNotSupportedException(SR.PlatformNotSupported_CAS); }
public static void RevertAll() { }
public static void RevertAssert() { }
[Obsolete]
public static void RevertDeny() { }
public static void RevertPermitOnly() { }
public override string ToString() => base.ToString();
public abstract SecurityElement ToXml();
public virtual IPermission Union(IPermission other) { return default(IPermission); }
}
}