System.IO.IsolatedStorage.IsolatedStorageFile.IncreaseQuotaTo Method

Enables an application to explicitly request a larger quota size, in bytes.

Syntax

[System.Runtime.InteropServices.ComVisible(false)]
public override bool IncreaseQuotaTo (long newQuotaSize)

Parameters

newQuotaSize
The requested size, in bytes.

Returns

true if the new quota is accepted; otherwise, false.

Remarks

The IsolatedStorageFile.IncreaseQuotaTo(long) method enables an application to explicitly request a larger quota size in bytes. The new quota size must not be smaller than the current quota size, because only quota increases are allowed.

Whenever the IsolatedStorageFile.IncreaseQuotaTo(long) method is called, isolated storage calls the AppDomainManager.CheckSecuritySettings(System.Security.SecurityState) method.

You can implement policy decisions by creating a custom AppDomainManager object that overrides the AppDomainManager.CheckSecuritySettings(System.Security.SecurityState) method so that the object can perform policy decisions based on a System.IO.IsolatedStorage.IsolatedStorageSecurityState object.

If there is no custom AppDomainManager object, the quota increase request is denied, because the default implementation for AppDomainManager.CheckSecuritySettings(System.Security.SecurityState) returns false.

Currently, none of the hosts in the .NET Framework provide this customization, so IsolatedStorageFile.IncreaseQuotaTo(long) always returns false.

Requirements

Namespace: System.IO.IsolatedStorage
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 4.0.0.0