IsolatedStorage.MaximumSize 属性

定义

注意

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

注意

此 API 现已过时。

重要

此 API 不符合 CLS。

获取一个值,该值表示独立存储的最大可用空间数量。Gets a value representing the maximum amount of space available for isolated storage. 当在派生类中重写时,该值可以采用不同的度量单位。When overridden in a derived class, this value can take different units of measure.

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)]
public virtual ulong MaximumSize { get; }
[System.CLSCompliant(false)]
[System.Obsolete]
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)>]
member this.MaximumSize : uint64
[<System.CLSCompliant(false)>]
[<System.Obsolete>]
member this.MaximumSize : uint64
Public Overridable ReadOnly Property MaximumSize As ULong

属性值

UInt64

独立存储空间的最大数量(以字节为单位)。The maximum amount of isolated storage space in bytes. 派生类可以返回不同单位的值。Derived classes can return different units of value.

属性

例外

尚未定义配额。The quota has not been defined.

注解

属性的默认实现 MaximumSize 返回的值 IsolatedStoragePermission.UserQuota (以字节表示)。The default implementation of the MaximumSize property returns the value of IsolatedStoragePermission.UserQuota, which is expressed in bytes. 派生类可以用其他度量单位表示值。Derived classes can express the value in other units of measure. 此类实现的一个可能示例是独立存储数据库。A potential example of such an implementation is an isolated storage database.

你无法设置 MaximumSize ,但配额是在安全策略中配置的,并且可以进行设置。You cannot set MaximumSize, but the quota is configured in the security policy, and can be set. 代码在其证据的基础上接收空间配额,因此,如果使用不同的证据运行,则相同的代码可能会收到不同的配额 (例如,本地运行的同一应用程序以及来自 intranet 上的共享可接收) 的不同配额。Code receives a quota of space on the basis of its evidence, so the same code can receive a different quota if it is run with different evidence (for example, the same application run locally and from a share on an intranet can receive different quotas). IsolatedStorageFile.MaximumSize 实现此属性。IsolatedStorageFile.MaximumSize implements this property.

适用于