IsolatedStorageFile::IncreaseQuotaTo Method (Int64)
Enables an application to explicitly request a larger quota size, in bytes.
Assembly: mscorlib (in mscorlib.dll)
public: [ComVisibleAttribute(false)] virtual bool IncreaseQuotaTo( long long newQuotaSize ) override
Parameters
- newQuotaSize
-
Type:
System::Int64
The requested size, in bytes.
| Exception | Condition |
|---|---|
| ArgumentException | newQuotaSize is less than current quota size. |
| ArgumentOutOfRangeException | newQuotaSize is less than zero, or less than or equal to the current quota size. |
| InvalidOperationException | The isolated store has been closed. |
| NotSupportedException | The current scope is not for an application user. |
| ObjectDisposedException | The isolated store has been disposed. |
| IsolatedStorageException | The isolated store has been removed. -or- 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.
Available since 4.0
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0