IsolatedStorage.MaximumSize 属性

定义

注意

IsolatedStorage.MaximumSize has been deprecated because it is not CLS Compliant. To get the maximum size use IsolatedStorage.Quota

注意

IsolatedStorage.MaximumSize has been deprecated because it is not CLS Compliant. To get the maximum size use IsolatedStorage.Quota instead.

重要

此 API 不符合 CLS。

获取一个值,该值表示独立存储的最大可用空间数量。 当在派生类中重写时,该值可以采用不同的度量单位。

public:
 virtual property System::UInt64 MaximumSize { System::UInt64 get(); };
[System.CLSCompliant(false)]
[System.Obsolete("IsolatedStorage.MaximumSize has been deprecated because it is not CLS Compliant.  To get the maximum size use IsolatedStorage.Quota")]
public virtual ulong MaximumSize { get; }
[System.CLSCompliant(false)]
[System.Obsolete("IsolatedStorage.MaximumSize has been deprecated because it is not CLS Compliant. To get the maximum size use IsolatedStorage.Quota instead.")]
public virtual ulong MaximumSize { get; }
[System.CLSCompliant(false)]
public virtual ulong MaximumSize { get; }
[<System.CLSCompliant(false)>]
[<System.Obsolete("IsolatedStorage.MaximumSize has been deprecated because it is not CLS Compliant.  To get the maximum size use IsolatedStorage.Quota")>]
member this.MaximumSize : uint64
[<System.CLSCompliant(false)>]
[<System.Obsolete("IsolatedStorage.MaximumSize has been deprecated because it is not CLS Compliant. To get the maximum size use IsolatedStorage.Quota instead.")>]
member this.MaximumSize : uint64
[<System.CLSCompliant(false)>]
member this.MaximumSize : uint64
Public Overridable ReadOnly Property MaximumSize As ULong

属性值

独立存储空间的最大数量(以字节为单位)。 派生类可以返回不同单位的值。

属性

例外

尚未定义配额。

注解

属性的默认实现 MaximumSize 返回 的值 IsolatedStoragePermission.UserQuota,该值以字节为单位表示。 派生类可以用其他度量单位表示值。 此类实现的一个可能示例是独立存储数据库。

不能设置 MaximumSize,但配额是在安全策略中配置的,可以设置。 代码根据其证据接收空间配额,因此,如果代码使用不同的证据 (运行,则同一代码可以接收不同的配额 (例如,同一应用程序在本地运行,从 Intranet 上的共享可以接收不同的配额) 。 IsolatedStorageFile.MaximumSize 实现此属性。

适用于