Windows apps
Collapse the table of content
Expand the table of content
Information
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.

IsolatedStorage::CurrentSize Property

 
obsoleteCodeEntityP:System.IO.IsolatedStorage.IsolatedStorage.UsedSize Note: This API is now obsolete.

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)

public:
[CLSCompliantAttribute(false)]
[ObsoleteAttribute("IsolatedStorage.CurrentSize has been deprecated because it is not CLS Compliant.  To get the current size use IsolatedStorage.UsedSize")]
property unsigned long long CurrentSize {
	virtual unsigned long long get();
}

Property Value

Type: System::UInt64

The number of storage units currently used within the isolated storage scope.

Exception Condition
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
Available since 1.1
Return to top
Show:
© 2017 Microsoft