IsolatedStorage.CurrentSize 属性

定义

注意

IsolatedStorage.CurrentSize has been deprecated because it is not CLS Compliant. To get the current size use IsolatedStorage.UsedSize

注意

IsolatedStorage.CurrentSize has been deprecated because it is not CLS Compliant. To get the current size use IsolatedStorage.UsedSize instead.

重要

此 API 不符合 CLS。

获取表示独立存储当前大小的值。

C#
[System.CLSCompliant(false)]
[System.Obsolete("IsolatedStorage.CurrentSize has been deprecated because it is not CLS Compliant.  To get the current size use IsolatedStorage.UsedSize")]
public virtual ulong CurrentSize { get; }
C#
[System.CLSCompliant(false)]
[System.Obsolete("IsolatedStorage.CurrentSize has been deprecated because it is not CLS Compliant. To get the current size use IsolatedStorage.UsedSize instead.")]
public virtual ulong CurrentSize { get; }
C#
[System.CLSCompliant(false)]
public virtual ulong CurrentSize { get; }

属性值

该独立存储范围内当前使用的存储单元的数目。

属性

例外

独立存储区的当前大小未定义。

注解

此属性表示独立存储范围内所有存储资源的总使用量。 IsolatedStorageFile.CurrentSize 实现此属性。 对于 IsolatedStorageFile 对象,此值以字节为单位。 对于其他存储对象(如数据库)的实现,此值可能位于其他存储单元中。

适用于

产品 版本 (已过时)
.NET (Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9)
.NET Framework 1.1, 2.0, 3.0, 3.5 (4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1)
.NET Standard (2.0, 2.1)