46 lines
2.4 KiB
C#
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: 0x020003CF RID: 975
|
|
[Token(Token = "0x20003CF")]
|
|
[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: 0x0400134A RID: 4938
|
|
[Token(Token = "0x400134A")]
|
|
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: 0x0400134B RID: 4939
|
|
[Token(Token = "0x400134B")]
|
|
[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: 0x0400134C RID: 4940
|
|
[Token(Token = "0x400134C")]
|
|
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: 0x0400134D RID: 4941
|
|
[Token(Token = "0x400134D")]
|
|
[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: 0x0400134E RID: 4942
|
|
[Token(Token = "0x400134E")]
|
|
[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: 0x0400134F RID: 4943
|
|
[Token(Token = "0x400134F")]
|
|
[ComVisible(false)]
|
|
RestrictedMemberAccess = 8
|
|
}
|
|
}
|