using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System.Security.Permissions
{
/// Controls access to non-public types and members through the APIs. Controls some features of the APIs.
// Token: 0x020003B2 RID: 946
[Token(Token = "0x20003B2")]
[ComVisible(true)]
[Serializable]
public sealed class ReflectionPermission : CodeAccessPermission
{
/// Initializes a new instance of the class with the specified access.
/// One of the values.
/// The parameter is not a valid value of .
// Token: 0x0600209C RID: 8348 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600209C")]
[Address(RVA = "0x2DF4050", Offset = "0x2DF2E50", VA = "0x182DF4050")]
public ReflectionPermission(ReflectionPermissionFlag flag)
{
}
/// Gets or sets the type of reflection allowed for the current permission.
/// The set flags for the current permission.
/// An attempt is made to set this property to an invalid value. See for the valid values.
// 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
{
}
}
/// Determines whether the current permission is a subset of the specified permission.
/// A permission that is to be tested for the subset relationship. This permission must be of the same type as the current permission.
///
/// if the current permission is a subset of the specified permission; otherwise, .
/// The parameter is not and is not of the same type as the current permission.
// 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);
}
/// Returns a value indicating whether the current permission is unrestricted.
///
/// if the current permission is unrestricted; otherwise, .
// 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);
}
/// Creates an XML encoding of the permission and its current state.
/// An XML encoding of the permission, including any state information.
// 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;
}
}