IsolatedStorage.MaximumSize Egenskap

Definition

Varning

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

Varning

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

Viktigt!

Detta API uppfyller inte CLS.

Hämtar ett värde som representerar den maximala mängden tillgängligt utrymme för isolerad lagring. När det åsidosättas i en härledd klass kan det här värdet ta olika måttenheter.

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 instead.")]
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")]
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 instead.")>]
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")>]
member this.MaximumSize : uint64
[<System.CLSCompliant(false)>]
member this.MaximumSize : uint64
Public Overridable ReadOnly Property MaximumSize As ULong

Egenskapsvärde

Den maximala mängden isolerat lagringsutrymme i byte. Härledda klasser kan returnera olika värdeenheter.

Attribut

Undantag

Kvoten har inte definierats.

Kommentarer

Standardimplementeringen av MaximumSize egenskapen returnerar värdet IsolatedStoragePermission.UserQuotaför , som uttrycks i byte. Härledda klasser kan uttrycka värdet i andra måttenheter. Ett potentiellt exempel på en sådan implementering är en isolerad lagringsdatabas.

Du kan inte ange MaximumSize, men kvoten är konfigurerad i säkerhetsprincipen och kan anges. Kod tar emot en kvot med utrymme på grundval av dess bevis, så samma kod kan ta emot en annan kvot om den körs med olika bevis (till exempel samma program körs lokalt och från en resurs på ett intranät kan ta emot olika kvoter). IsolatedStorageFile.MaximumSize implementerar den här egenskapen.

Gäller för