Files
Dec2017-Script-Dump/mscorlib/System/Security/Permissions/ReflectionPermissionFlag.cs
T
2026-06-04 11:42:34 +02:00

35 lines
2.1 KiB
C#

using System;
using System.Runtime.InteropServices;
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: 0x02000563 RID: 1379
[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: 0x040014AA RID: 5290
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: 0x040014AB RID: 5291
[Obsolete("not used anymore")]
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: 0x040014AC RID: 5292
MemberAccess = 2,
/// <summary>Emitting debug symbols is allowed. Beginning with the .NET Framework version 2.0 Service Pack 1, this flag is no longer required to emit code.</summary>
// Token: 0x040014AD RID: 5293
ReflectionEmit = 4,
/// <summary>TypeInformation, MemberAccess, and ReflectionEmit are set. <see cref="F:System.Security.Permissions.ReflectionPermissionFlag.AllFlags" /> does not include <see cref="F:System.Security.Permissions.ReflectionPermissionFlag.RestrictedMemberAccess" />.</summary>
// Token: 0x040014AE RID: 5294
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: 0x040014AF RID: 5295
[ComVisible(false)]
RestrictedMemberAccess = 8
}
}