scripts
This commit is contained in:
@@ -0,0 +1,146 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace System.Security.Permissions
|
||||
{
|
||||
/// <summary>Allows security actions for a <see cref="T:System.Security.PermissionSet" /> to be applied to code using declarative security. This class cannot be inherited.</summary>
|
||||
// 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
|
||||
{
|
||||
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Permissions.PermissionSetAttribute" /> class with the specified <see cref="T:System.Security.Permissions.SecurityAction" />.</summary>
|
||||
/// <param name="action">One of the <see cref="T:System.Security.Permissions.SecurityAction" /> values. </param>
|
||||
// Token: 0x0600320A RID: 12810 RVA: 0x000ABB3C File Offset: 0x000A9D3C
|
||||
public PermissionSetAttribute(SecurityAction action)
|
||||
: base(action)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Gets or sets a file containing the XML representation of a custom permission set to be declared.</summary>
|
||||
/// <returns>The physical path to the file containing the XML representation of the permission set.</returns>
|
||||
// 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;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Gets or sets the hexadecimal representation of the XML encoded permission set.</summary>
|
||||
/// <returns>The hexadecimal representation of the XML encoded permission set.</returns>
|
||||
// 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;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Gets or sets the name of the permission set.</summary>
|
||||
/// <returns>The name of an immutable <see cref="T:System.Security.NamedPermissionSet" /> (one of several permission sets that are contained in the default policy and cannot be altered).</returns>
|
||||
// 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;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Gets or sets a value indicating whether the file specified by <see cref="P:System.Security.Permissions.PermissionSetAttribute.File" /> is Unicode or ASCII encoded.</summary>
|
||||
/// <returns>true if the file is Unicode encoded; otherwise, false.</returns>
|
||||
// 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;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Gets or sets the XML representation of a permission set.</summary>
|
||||
/// <returns>The XML representation of a permission set.</returns>
|
||||
// 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;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Creates and returns a new <see cref="T:System.Security.IPermission" />.</summary>
|
||||
/// <returns>A new <see cref="T:System.Security.IPermission" />.</returns>
|
||||
// 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;
|
||||
}
|
||||
|
||||
/// <summary>Creates and returns a new <see cref="T:System.Security.PermissionSet" />.</summary>
|
||||
/// <returns>A new <see cref="T:System.Security.PermissionSet" />.</returns>
|
||||
/// <PermissionSet>
|
||||
/// <IPermission class="System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Unrestricted="true" />
|
||||
/// </PermissionSet>
|
||||
// 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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user