This documentation is archived and is not being maintained.

Quotas for Isolated Storage

A quota is a limit on the amount of isolated storage that can be used. The quota includes bytes of file space as well as the overhead associated with the directory and other information in the store. Isolated storage uses permission quotas, which are storage limits set using IsolatedStoragePermission objects. If an attempt is made to write data that exceeds the quota, an IsolatedStorageException is thrown. Security policy, which can be modified using the .NET Framework Configuration Tool (Mscorcfg.msc), determines which permissions are granted to code. Code that has been granted IsolatedStoragePermission is restricted to using no more storage than the UserQuota property allows. However, because code can bypass permission quotas by presenting different user identities, permission quotas serve as guidelines for how code should behave rather than as a firm limit on code behavior.

Quotas are not enforced on roaming stores. Because of this, a slightly higher level of permission is required for code to use them. AssemblyIsolationByRoamingUser and DomainIsolationByRoamingUser are two enumerations that specify a permission to use isolated storage for a roaming user. For more information, see Requesting Permissions.

See Also

Types of Isolation | Securing Isolated Storage | Allowed Usage and Security Risks | IsolatedStorageScope.Roaming