IsolatedStorage 類別

定義

表示所有隔離的儲存區實作必須衍生自的抽象基底類別。Represents the abstract base class from which all isolated storage implementations must derive.

public ref class IsolatedStorage abstract : MarshalByRefObject
public abstract class IsolatedStorage : MarshalByRefObject
[System.Runtime.InteropServices.ComVisible(true)]
public abstract class IsolatedStorage : MarshalByRefObject
type IsolatedStorage = class
    inherit MarshalByRefObject
Public MustInherit Class IsolatedStorage
Inherits MarshalByRefObject
繼承
IsolatedStorage
衍生
屬性

備註

重要

使用不信任的資料呼叫此類別的方法,會造成安全性上的風險。Calling methods from this class with untrusted data is a security risk. 呼叫此類別的方法時,請一律使用信任的資料。Call the methods from this class only with trusted data. 如需詳細資訊,請參閱資料驗證For more information, see Data Validation.

如需以檔案為基礎的隔離儲存區的詳細資訊,請參閱 IsolatedStorageFile 類別。For information about file-based isolated storage, see the IsolatedStorageFile class.

重要

Windows 8.x 市集Windows 8.x Store 應用程式無法使用隔離儲存區。Isolated storage is not available for Windows 8.x 市集Windows 8.x Store apps. 請改用 Windows.Storage 應用程式開發介面內含的 Windows 執行階段Windows Runtime 命名空間中的應用程式資料類別來儲存本機資料和檔案。Instead, use the application data classes in the Windows.Storage namespaces included in the Windows 執行階段Windows Runtime API to store local data and files. 如需詳細資訊,請參閱 Windows 開發人員中心的 應用程式資料For more information, see Application data in the Windows Dev Center.

建構函式

IsolatedStorage()

IsolatedStorage 類別的新執行個體初始化。Initializes a new instance of the IsolatedStorage class.

屬性

ApplicationIdentity

取得限定隔離儲存區 (Isolated Storage) 範圍的應用程式識別 (Identity)。Gets an application identity that scopes isolated storage.

AssemblyIdentity

取得用來限定隔離儲存區範圍的組件識別 (Assembly Identity)。Gets an assembly identity used to scope isolated storage.

AvailableFreeSpace

在衍生類別中覆寫時,取得隔離儲存區的可用空間 (以位元組為單位)。When overridden in a derived class, gets the available free space for isolated storage, in bytes.

CurrentSize

取得值,表示隔離儲存區的目前大小。Gets a value representing the current size of isolated storage.

DomainIdentity

取得限定隔離儲存區範圍的網域識別。Gets a domain identity that scopes isolated storage.

MaximumSize

取得值,表示隔離儲存區的最大可用空間量。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.

Quota

在衍生類別中覆寫時取得值,這個值表示隔離儲存區空間的最大可用空間量。When overridden in a derived class, gets a value that represents the maximum amount of space available for isolated storage.

Scope

取得 IsolatedStorageScope 列舉型別值,指定用來隔離存放區的範圍。Gets an IsolatedStorageScope enumeration value specifying the scope used to isolate the store.

SeparatorExternal

取得可以用在目錄字串中的反斜線字元。Gets a backslash character that can be used in a directory string. 當在衍生類別中覆寫時,可能會傳回另一個字元。When overridden in a derived class, another character might be returned.

SeparatorInternal

取得可以用在目錄字串中的句號字元。Gets a period character that can be used in a directory string. 當在衍生類別中覆寫時,可能會傳回另一個字元。When overridden in a derived class, another character might be returned.

UsedSize

在衍生類別中覆寫時,取得值,這個值表示隔離儲存區的已使用空間量。When overridden in a derived class, gets a value that represents the amount of the space used for isolated storage.

方法

CreateObjRef(Type)

建立包含所有相關資訊的物件,這些資訊是產生用來與遠端物件通訊的所需 Proxy。Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.

(繼承來源 MarshalByRefObject)
Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(繼承來源 Object)
GetHashCode()

做為預設雜湊函式。Serves as the default hash function.

(繼承來源 Object)
GetLifetimeService()

擷取控制這個執行個體存留期 (Lifetime) 原則的目前存留期服務物件。Retrieves the current lifetime service object that controls the lifetime policy for this instance.

(繼承來源 MarshalByRefObject)
GetPermission(PermissionSet)

在由衍生類別實作時,會從使用權限集合中傳回表示存取隔離儲存區的使用權限。When implemented by a derived class, returns a permission that represents access to isolated storage from within a permission set.

GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(繼承來源 Object)
IncreaseQuotaTo(Int64)

在衍生類別中覆寫時,提示使用者核准更大的隔離儲存區配額大小 (以位元組為單位)。When overridden in a derived class, prompts a user to approve a larger quota size, in bytes, for isolated storage.

InitializeLifetimeService()

取得存留期服務物件,以控制這個執行個體的存留期原則。Obtains a lifetime service object to control the lifetime policy for this instance.

(繼承來源 MarshalByRefObject)
InitStore(IsolatedStorageScope, Type)

初始化新的 IsolatedStorage 物件。Initializes a new IsolatedStorage object.

InitStore(IsolatedStorageScope, Type, Type)

初始化新的 IsolatedStorage 物件。Initializes a new IsolatedStorage object.

MemberwiseClone()

建立目前 Object 的淺層複製。Creates a shallow copy of the current Object.

(繼承來源 Object)
MemberwiseClone(Boolean)

建立目前 MarshalByRefObject 物件的淺層複本。Creates a shallow copy of the current MarshalByRefObject object.

(繼承來源 MarshalByRefObject)
Remove()

當在衍生類別中被覆寫時,移除個別隔離存放區和所有的收納資料。When overridden in a derived class, removes the individual isolated store and all contained data.

ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(繼承來源 Object)

適用於

另請參閱