using System;
using System.Runtime.InteropServices;
namespace System.Security.Permissions
{
/// Specifies the base attribute class for declarative security from which is derived.
// Token: 0x02000046 RID: 70
[ComVisible(true)]
[Obsolete("CAS support is not available with Silverlight applications.")]
[AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Constructor | AttributeTargets.Method, AllowMultiple = true, Inherited = false)]
[Serializable]
public abstract class SecurityAttribute : Attribute
{
/// Initializes a new instance of with the specified .
/// One of the values.
// Token: 0x06000662 RID: 1634 RVA: 0x00014B10 File Offset: 0x00012D10
protected SecurityAttribute(SecurityAction action)
{
this.Action = action;
}
/// When overridden in a derived class, creates a permission object that can then be serialized into binary form and persistently stored along with the in an assembly's metadata.
/// A serializable permission object.
// Token: 0x06000663 RID: 1635
public abstract IPermission CreatePermission();
/// Gets or sets a value indicating whether full (unrestricted) permission to the resource protected by the attribute is declared.
/// true if full permission to the protected resource is declared; otherwise, false.
// Token: 0x170000B2 RID: 178
// (get) Token: 0x06000664 RID: 1636 RVA: 0x00014B20 File Offset: 0x00012D20
// (set) Token: 0x06000665 RID: 1637 RVA: 0x00014B28 File Offset: 0x00012D28
public bool Unrestricted
{
get
{
return this.m_Unrestricted;
}
set
{
this.m_Unrestricted = value;
}
}
/// Gets or sets a security action.
/// One of the values.
// Token: 0x170000B3 RID: 179
// (get) Token: 0x06000666 RID: 1638 RVA: 0x00014B34 File Offset: 0x00012D34
// (set) Token: 0x06000667 RID: 1639 RVA: 0x00014B3C File Offset: 0x00012D3C
public SecurityAction Action
{
get
{
return this.m_Action;
}
set
{
this.m_Action = value;
}
}
// Token: 0x0400009B RID: 155
private SecurityAction m_Action;
// Token: 0x0400009C RID: 156
private bool m_Unrestricted;
}
}