Windows apps
Collapse the table of content
Expand the table of content
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IsolatedStorageFile.IncreaseQuotaTo Method (Int64)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

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

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

public override bool IncreaseQuotaTo(
	long newQuotaSize


Type: System.Int64

The requested size, in bytes.

Return Value

Type: System.Boolean

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

Exception Condition

newQuotaSize is less than current quota size.


newQuotaSize is less than zero, or less than or equal to the current quota size.


The isolated store has been closed.


The current scope is not for an application user.


The isolated store has been disposed.


The isolated store has been removed.


Isolated storage is disabled.

The IncreaseQuotaTo 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 IncreaseQuotaTo method is called, isolated storage calls the CheckSecuritySettings method.

You can implement policy decisions by creating a custom AppDomainManager object that overrides the CheckSecuritySettings method so that the object can perform policy decisions based on a IsolatedStorageSecurityState object.

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

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

.NET Framework
Available since 4.0
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top
© 2018 Microsoft