Files
27Aug2021-Cpp2IL-Dump/mscorlib/System/Security/Permissions/SecurityAction.cs
T
niko c12fbe3fc6 m
2026-04-12 16:51:38 +02:00

58 lines
3.0 KiB
C#

using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System.Security.Permissions
{
/// <summary>Specifies the security actions that can be performed using declarative security.</summary>
// Token: 0x020003D0 RID: 976
[Token(Token = "0x20003D0")]
[Obsolete]
[ComVisible(true)]
[Obsolete("CAS support is not available with Silverlight applications.")]
[Serializable]
public enum SecurityAction
{
/// <summary>All callers higher in the call stack are required to have been granted the permission specified by the current permission object.</summary>
// Token: 0x04001351 RID: 4945
[Token(Token = "0x4001351")]
Demand = 2,
/// <summary>The calling code can access the resource identified by the current permission object, even if callers higher in the stack have not been granted permission to access the resource (see Using the Assert Method).</summary>
// Token: 0x04001352 RID: 4946
[Token(Token = "0x4001352")]
Assert,
/// <summary>The ability to access the resource specified by the current permission object is denied to callers, even if they have been granted permission to access it (see Using the Deny Method).</summary>
// Token: 0x04001353 RID: 4947
[Token(Token = "0x4001353")]
[Obsolete]
Deny,
/// <summary>Only the resources specified by this permission object can be accessed, even if the code has been granted permission to access other resources.</summary>
// Token: 0x04001354 RID: 4948
[Token(Token = "0x4001354")]
PermitOnly,
/// <summary>The immediate caller is required to have been granted the specified permission. Do not use in the .NET Framework 4. For full trust, use <see cref="T:System.Security.SecurityCriticalAttribute" /> instead; for partial trust, use <see cref="F:System.Security.Permissions.SecurityAction.Demand" />.</summary>
// Token: 0x04001355 RID: 4949
[Token(Token = "0x4001355")]
LinkDemand,
/// <summary>The derived class inheriting the class or overriding a method is required to have been granted the specified permission.</summary>
// Token: 0x04001356 RID: 4950
[Token(Token = "0x4001356")]
InheritanceDemand,
/// <summary>The request for the minimum permissions required for code to run. This action can only be used within the scope of the assembly.</summary>
// Token: 0x04001357 RID: 4951
[Token(Token = "0x4001357")]
[Obsolete]
RequestMinimum,
/// <summary>The request for additional permissions that are optional (not required to run). This request implicitly refuses all other permissions not specifically requested. This action can only be used within the scope of the assembly.</summary>
// Token: 0x04001358 RID: 4952
[Token(Token = "0x4001358")]
[Obsolete]
RequestOptional,
/// <summary>The request that permissions that might be misused will not be granted to the calling code. This action can only be used within the scope of the assembly.</summary>
// Token: 0x04001359 RID: 4953
[Token(Token = "0x4001359")]
[Obsolete]
RequestRefuse
}
}