58 lines
3.0 KiB
C#
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: 0x020003B4 RID: 948
|
|
[Token(Token = "0x20003B4")]
|
|
[Obsolete]
|
|
[Obsolete("CAS support is not available with Silverlight applications.")]
|
|
[ComVisible(true)]
|
|
[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: 0x0400128E RID: 4750
|
|
[Token(Token = "0x400128E")]
|
|
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: 0x0400128F RID: 4751
|
|
[Token(Token = "0x400128F")]
|
|
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: 0x04001290 RID: 4752
|
|
[Token(Token = "0x4001290")]
|
|
[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: 0x04001291 RID: 4753
|
|
[Token(Token = "0x4001291")]
|
|
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: 0x04001292 RID: 4754
|
|
[Token(Token = "0x4001292")]
|
|
LinkDemand,
|
|
/// <summary>The derived class inheriting the class or overriding a method is required to have been granted the specified permission.</summary>
|
|
// Token: 0x04001293 RID: 4755
|
|
[Token(Token = "0x4001293")]
|
|
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: 0x04001294 RID: 4756
|
|
[Token(Token = "0x4001294")]
|
|
[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: 0x04001295 RID: 4757
|
|
[Token(Token = "0x4001295")]
|
|
[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: 0x04001296 RID: 4758
|
|
[Token(Token = "0x4001296")]
|
|
[Obsolete]
|
|
RequestRefuse
|
|
}
|
|
}
|