Silverlight Isolated Storage Maximum Quota - DevCorner

Silverlight Isolated Storage Maximum Quota

I've been asked couple of times (by clients, eMail and also here in comments) about maximum size for Silverlight Isolated Storage.

From tests I did, seems that maximum quota size is theoretically limited by total of long.MaxValue number of bytes.

   1: // Request more quota space.
   2: if (!store.IncreaseQuotaTo(long.MaxValue))
   3: //if (!store.IncreaseQuotaTo(store.Quota + spaceToAdd))
   4: {
   5:     // The user clicked NO to the
   6:     // host's prompt to approve the quota increase.
   7:     tbResults.Text = "User declined to approve Quota inrease";
   8: }
   9: else
  10: {
  11:     // The user clicked YES to the
  12:     // host's prompt to approve the quota increase.
  13:     tbResults.Text = "Quota inreased";
  14: }

image

image

So, who have 8,589,934,592Gb HDD? :)

 

The sample used to check it is the same sample from this post. Sources here (the only thing was changed is the size of requested quota in bIncreaseAllocation_Click function like in code snippet).

 

Enjoy,

Alex

Published Thursday, August 14, 2008 12:35 AM by Alex Golesh

Comments

# Silverlight Cream for August 14, 2008 -- #347

SilverlightOnly Panorama Viewer, Alex Golesh on Isolated Storage, Mike Snow on moving the XAP, Changing

Friday, August 15, 2008 2:16 AM by Community Blogs

# Silverlight news for August 15, 2008

Pingback from  Silverlight news for August 15, 2008

Friday, August 15, 2008 12:34 PM by Silverlight news for August 15, 2008

Leave a Comment

(required) 
(required) 
(optional)
(required) 

Enter the numbers above: