94 lines
4.3 KiB
C#
94 lines
4.3 KiB
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace System.Security.Permissions
|
|
{
|
|
/// <summary>Controls access to non-public types and members through the <see cref="N:System.Reflection" /> APIs. Controls some features of the <see cref="N:System.Reflection.Emit" /> APIs.</summary>
|
|
// Token: 0x020003B2 RID: 946
|
|
[Token(Token = "0x20003B2")]
|
|
[ComVisible(true)]
|
|
[Serializable]
|
|
public sealed class ReflectionPermission : CodeAccessPermission
|
|
{
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Permissions.ReflectionPermission" /> class with the specified access.</summary>
|
|
/// <param name="flag">One of the <see cref="T:System.Security.Permissions.ReflectionPermissionFlag" /> values.</param>
|
|
/// <exception cref="T:System.ArgumentException">The <paramref name="flag" /> parameter is not a valid value of <see cref="T:System.Security.Permissions.ReflectionPermissionFlag" />.</exception>
|
|
// Token: 0x0600209C RID: 8348 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x600209C")]
|
|
[Address(RVA = "0x2DF4050", Offset = "0x2DF2E50", VA = "0x182DF4050")]
|
|
public ReflectionPermission(ReflectionPermissionFlag flag)
|
|
{
|
|
}
|
|
|
|
/// <summary>Gets or sets the type of reflection allowed for the current permission.</summary>
|
|
/// <returns>The set flags for the current permission.</returns>
|
|
/// <exception cref="T:System.ArgumentException">An attempt is made to set this property to an invalid value. See <see cref="T:System.Security.Permissions.ReflectionPermissionFlag" /> for the valid values.</exception>
|
|
// Token: 0x17000466 RID: 1126
|
|
// (get) Token: 0x0600209D RID: 8349 RVA: 0x00014280 File Offset: 0x00012480
|
|
// (set) Token: 0x0600209E RID: 8350 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x17000466")]
|
|
public ReflectionPermissionFlag Flags
|
|
{
|
|
[Token(Token = "0x600209D")]
|
|
[Address(RVA = "0x3FA560", Offset = "0x3F9360", VA = "0x1803FA560")]
|
|
get
|
|
{
|
|
return ReflectionPermissionFlag.NoFlags;
|
|
}
|
|
[Token(Token = "0x600209E")]
|
|
[Address(RVA = "0x2DF4110", Offset = "0x2DF2F10", VA = "0x182DF4110")]
|
|
set
|
|
{
|
|
}
|
|
}
|
|
|
|
/// <summary>Determines whether the current permission is a subset of the specified permission.</summary>
|
|
/// <param name="target">A permission that is to be tested for the subset relationship. This permission must be of the same type as the current permission.</param>
|
|
/// <returns>
|
|
/// <see langword="true" /> if the current permission is a subset of the specified permission; otherwise, <see langword="false" />.</returns>
|
|
/// <exception cref="T:System.ArgumentException">The <paramref name="target" /> parameter is not <see langword="null" /> and is not of the same type as the current permission.</exception>
|
|
// Token: 0x0600209F RID: 8351 RVA: 0x00014298 File Offset: 0x00012498
|
|
[Token(Token = "0x600209F")]
|
|
[Address(RVA = "0x2DF3E10", Offset = "0x2DF2C10", VA = "0x182DF3E10", Slot = "6")]
|
|
public override bool IsSubsetOf(IPermission target)
|
|
{
|
|
return default(bool);
|
|
}
|
|
|
|
/// <summary>Returns a value indicating whether the current permission is unrestricted.</summary>
|
|
/// <returns>
|
|
/// <see langword="true" /> if the current permission is unrestricted; otherwise, <see langword="false" />.</returns>
|
|
// Token: 0x060020A0 RID: 8352 RVA: 0x000142B0 File Offset: 0x000124B0
|
|
[Token(Token = "0x60020A0")]
|
|
[Address(RVA = "0x2DF3EF0", Offset = "0x2DF2CF0", VA = "0x182DF3EF0", Slot = "8")]
|
|
public bool IsUnrestricted()
|
|
{
|
|
return default(bool);
|
|
}
|
|
|
|
/// <summary>Creates an XML encoding of the permission and its current state.</summary>
|
|
/// <returns>An XML encoding of the permission, including any state information.</returns>
|
|
// Token: 0x060020A1 RID: 8353 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x60020A1")]
|
|
[Address(RVA = "0x2DF3F00", Offset = "0x2DF2D00", VA = "0x182DF3F00", Slot = "7")]
|
|
public override SecurityElement ToXml()
|
|
{
|
|
return null;
|
|
}
|
|
|
|
// Token: 0x060020A2 RID: 8354 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x60020A2")]
|
|
[Address(RVA = "0x2DF3D70", Offset = "0x2DF2B70", VA = "0x182DF3D70")]
|
|
private ReflectionPermission Cast(IPermission target)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
// Token: 0x04001285 RID: 4741
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4001285")]
|
|
private ReflectionPermissionFlag flags;
|
|
}
|
|
}
|