using System;
using System.Runtime.InteropServices;
namespace System.Security.Permissions
{
/// Allows security actions for a to be applied to code using declarative security. This class cannot be inherited.
// Token: 0x0200055A RID: 1370
[ComVisible(true)]
[AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Constructor | AttributeTargets.Method, AllowMultiple = true, Inherited = false)]
[Serializable]
public sealed class PermissionSetAttribute : CodeAccessSecurityAttribute
{
/// Initializes a new instance of the class with the specified .
/// One of the values.
// Token: 0x0600320A RID: 12810 RVA: 0x000ABB3C File Offset: 0x000A9D3C
public PermissionSetAttribute(SecurityAction action)
: base(action)
{
}
/// Gets or sets a file containing the XML representation of a custom permission set to be declared.
/// The physical path to the file containing the XML representation of the permission set.
// Token: 0x170009D2 RID: 2514
// (get) Token: 0x0600320B RID: 12811 RVA: 0x000ABB48 File Offset: 0x000A9D48
// (set) Token: 0x0600320C RID: 12812 RVA: 0x000ABB50 File Offset: 0x000A9D50
public string File
{
get
{
return this.file;
}
set
{
this.file = value;
}
}
/// Gets or sets the hexadecimal representation of the XML encoded permission set.
/// The hexadecimal representation of the XML encoded permission set.
// Token: 0x170009D3 RID: 2515
// (get) Token: 0x0600320D RID: 12813 RVA: 0x000ABB5C File Offset: 0x000A9D5C
// (set) Token: 0x0600320E RID: 12814 RVA: 0x000ABB64 File Offset: 0x000A9D64
public string Hex
{
get
{
return this.hex;
}
set
{
this.hex = value;
}
}
/// Gets or sets the name of the permission set.
/// The name of an immutable (one of several permission sets that are contained in the default policy and cannot be altered).
// Token: 0x170009D4 RID: 2516
// (get) Token: 0x0600320F RID: 12815 RVA: 0x000ABB70 File Offset: 0x000A9D70
// (set) Token: 0x06003210 RID: 12816 RVA: 0x000ABB78 File Offset: 0x000A9D78
public string Name
{
get
{
return this.name;
}
set
{
this.name = value;
}
}
/// Gets or sets a value indicating whether the file specified by is Unicode or ASCII encoded.
/// true if the file is Unicode encoded; otherwise, false.
// Token: 0x170009D5 RID: 2517
// (get) Token: 0x06003211 RID: 12817 RVA: 0x000ABB84 File Offset: 0x000A9D84
// (set) Token: 0x06003212 RID: 12818 RVA: 0x000ABB8C File Offset: 0x000A9D8C
public bool UnicodeEncoded
{
get
{
return this.isUnicodeEncoded;
}
set
{
this.isUnicodeEncoded = value;
}
}
/// Gets or sets the XML representation of a permission set.
/// The XML representation of a permission set.
// Token: 0x170009D6 RID: 2518
// (get) Token: 0x06003213 RID: 12819 RVA: 0x000ABB98 File Offset: 0x000A9D98
// (set) Token: 0x06003214 RID: 12820 RVA: 0x000ABBA0 File Offset: 0x000A9DA0
public string XML
{
get
{
return this.xml;
}
set
{
this.xml = value;
}
}
/// Creates and returns a new .
/// A new .
// Token: 0x06003215 RID: 12821 RVA: 0x000ABBAC File Offset: 0x000A9DAC
public override IPermission CreatePermission()
{
return null;
}
// Token: 0x06003216 RID: 12822 RVA: 0x000ABBB0 File Offset: 0x000A9DB0
private PermissionSet CreateFromXml(string xml)
{
return null;
}
/// Creates and returns a new .
/// A new .
///
///
///
// Token: 0x06003217 RID: 12823 RVA: 0x000ABBB4 File Offset: 0x000A9DB4
public PermissionSet CreatePermissionSet()
{
return null;
}
// Token: 0x0400148E RID: 5262
private string file;
// Token: 0x0400148F RID: 5263
private string name;
// Token: 0x04001490 RID: 5264
private bool isUnicodeEncoded;
// Token: 0x04001491 RID: 5265
private string xml;
// Token: 0x04001492 RID: 5266
private string hex;
}
}