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 ,但配額是在安全性原則中設定,而且可以設定。 程式碼會根據其辨識項接收空間配額,因此,如果相同的程式碼是以不同的辨識項執行, (例如,相同的應用程式會在本機執行,並從內部網路上的共用接收不同的配額) 。 IsolatedStorageFile.MaximumSize 會實作這個屬性。

適用於