Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

IsolatedStorage.CurrentSize Property

Note: This API is now obsolete. The non-obsolete alternative is UsedSize.

Gets a value representing the current size of isolated storage.

This API is not CLS-compliant. 

Namespace:  System.IO.IsolatedStorage
Assembly:  mscorlib (in mscorlib.dll)
[ObsoleteAttribute("IsolatedStorage.CurrentSize has been deprecated because it is not CLS Compliant.  To get the current size use IsolatedStorage.UsedSize")]
[CLSCompliantAttribute(false)]
public virtual ulong CurrentSize { get; }

Property Value

Type: System.UInt64
The number of storage units currently used within the isolated storage scope.
ExceptionCondition
InvalidOperationException

The current size of the isolated store is undefined.

This property represents the total usage of all storage resources within the isolated storage scope. IsolatedStorageFile.CurrentSize implements this property. In the case of IsolatedStorageFile objects, this value is in bytes. In the case of implementations of other storage objects, such as a database, this value might be in other units of storage.

.NET Framework

Supported in: 3.5, 3.0, 2.0, 1.1, 1.0
Obsolete (compiler warning) in 4.5.1
Obsolete (compiler warning) in 4.5
Obsolete (compiler warning) in 4

.NET Framework Client Profile

Supported in: 3.5 SP1
Obsolete (compiler warning) in 4

Windows Phone 8.1, Windows Phone 8, Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.