Files
niko 8fc35183db a
2026-04-11 22:19:20 +02:00

46 lines
2.4 KiB
C#

using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System.Security.Permissions
{
/// <summary>Specifies the permitted use of the <see cref="N:System.Reflection" /> and <see cref="N:System.Reflection.Emit" /> namespaces.</summary>
// Token: 0x020003B3 RID: 947
[Token(Token = "0x20003B3")]
[Flags]
[ComVisible(true)]
[Serializable]
public enum ReflectionPermissionFlag
{
/// <summary>Enumeration of types and members is allowed. Invocation operations are allowed on visible types and members.</summary>
// Token: 0x04001287 RID: 4743
[Token(Token = "0x4001287")]
NoFlags = 0,
/// <summary>This flag is obsolete. No flags are necessary to enumerate types and members and to examine their metadata. Use <see cref="F:System.Security.Permissions.ReflectionPermissionFlag.NoFlags" /> instead.</summary>
// Token: 0x04001288 RID: 4744
[Token(Token = "0x4001288")]
[Obsolete]
TypeInformation = 1,
/// <summary>Invocation operations on all members are allowed, regardless of grant set. If this flag is not set, invocation operations are allowed only on visible members.</summary>
// Token: 0x04001289 RID: 4745
[Token(Token = "0x4001289")]
MemberAccess = 2,
/// <summary>Emitting debug symbols is allowed. Beginning with the .NET Framework 2.0 Service Pack 1, this flag is no longer required to emit code.</summary>
// Token: 0x0400128A RID: 4746
[Token(Token = "0x400128A")]
[Obsolete]
ReflectionEmit = 4,
/// <summary>
/// <see langword="TypeInformation" /> , <see langword="MemberAccess" />, and <see langword="ReflectionEmit" /> are set. <see cref="F:System.Security.Permissions.ReflectionPermissionFlag.AllFlags" /> does not include <see cref="F:System.Security.Permissions.ReflectionPermissionFlag.RestrictedMemberAccess" />.</summary>
// Token: 0x0400128B RID: 4747
[Token(Token = "0x400128B")]
[Obsolete]
AllFlags = 7,
/// <summary>Restricted member access is provided for partially trusted code. Partially trusted code can access nonpublic types and members, but only if the grant set of the partially trusted code includes all permissions in the grant set of the assembly that contains the nonpublic types and members being accessed. This flag is new in the .NET Framework 2.0 SP1.</summary>
// Token: 0x0400128C RID: 4748
[Token(Token = "0x400128C")]
[ComVisible(false)]
RestrictedMemberAccess = 8
}
}