62 lines
2.3 KiB
C#
62 lines
2.3 KiB
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
|
|
namespace System.Security.Permissions
|
|
{
|
|
/// <summary>Allows security actions for <see cref="T:System.Security.Permissions.IsolatedStoragePermission" /> to be applied to code using declarative security.</summary>
|
|
// Token: 0x02000553 RID: 1363
|
|
[AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Constructor | AttributeTargets.Method, AllowMultiple = true, Inherited = false)]
|
|
[ComVisible(true)]
|
|
[Serializable]
|
|
public abstract class IsolatedStoragePermissionAttribute : CodeAccessSecurityAttribute
|
|
{
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Permissions.IsolatedStoragePermissionAttribute" /> 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: 0x060031C3 RID: 12739 RVA: 0x000AB27C File Offset: 0x000A947C
|
|
protected IsolatedStoragePermissionAttribute(SecurityAction action)
|
|
: base(action)
|
|
{
|
|
}
|
|
|
|
/// <summary>Gets or sets the level of isolated storage that should be declared.</summary>
|
|
/// <returns>One of the <see cref="T:System.Security.Permissions.IsolatedStorageContainment" /> values.</returns>
|
|
// Token: 0x170009BC RID: 2492
|
|
// (get) Token: 0x060031C4 RID: 12740 RVA: 0x000AB288 File Offset: 0x000A9488
|
|
// (set) Token: 0x060031C5 RID: 12741 RVA: 0x000AB290 File Offset: 0x000A9490
|
|
public IsolatedStorageContainment UsageAllowed
|
|
{
|
|
get
|
|
{
|
|
return this.usage_allowed;
|
|
}
|
|
set
|
|
{
|
|
this.usage_allowed = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets or sets the maximum user storage quota size.</summary>
|
|
/// <returns>The maximum user storage quota size in bytes.</returns>
|
|
// Token: 0x170009BD RID: 2493
|
|
// (get) Token: 0x060031C6 RID: 12742 RVA: 0x000AB29C File Offset: 0x000A949C
|
|
// (set) Token: 0x060031C7 RID: 12743 RVA: 0x000AB2A4 File Offset: 0x000A94A4
|
|
public long UserQuota
|
|
{
|
|
get
|
|
{
|
|
return this.user_quota;
|
|
}
|
|
set
|
|
{
|
|
this.user_quota = value;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0400146F RID: 5231
|
|
private IsolatedStorageContainment usage_allowed;
|
|
|
|
// Token: 0x04001470 RID: 5232
|
|
private long user_quota;
|
|
}
|
|
}
|