Movatterモバイル変換


[0]ホーム

URL:


Skip to main contentSkip to in-page navigation

This browser is no longer supported.

Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.

Download Microsoft EdgeMore info about Internet Explorer and Microsoft Edge
Table of contentsExit editor mode

IsolatedStorage Class

Definition

Namespace:
System.IO.IsolatedStorage
Assemblies:
netstandard.dll, System.IO.IsolatedStorage.dll
Assembly:
System.IO.IsolatedStorage.dll
Assembly:
mscorlib.dll
Assembly:
netstandard.dll
Source:
IsolatedStorage.cs
Source:
IsolatedStorage.cs
Source:
IsolatedStorage.cs
Source:
IsolatedStorage.cs

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

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
[<System.Runtime.InteropServices.ComVisible(true)>]type IsolatedStorage = class    inherit MarshalByRefObject
Public MustInherit Class IsolatedStorageInherits MarshalByRefObject
Inheritance
Derived
Attributes

Remarks

Important

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, seeValidate All Inputs.

For information about file-based isolated storage, see theIsolatedStorageFile class.

Important

Isolated storage is not available for Windows 8.x Store apps. Instead, use the application data classes in theWindows.Storage namespaces included in the Windows Runtime API to store local data and files. For more information, seeApplication data in the Windows Dev Center.

Constructors

NameDescription
IsolatedStorage()

Initializes a new instance of theIsolatedStorage class.

Properties

NameDescription
ApplicationIdentity

Gets an application identity that scopes isolated storage.

AssemblyIdentity

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
Obsolete.
Obsolete.

Gets a value representing the current size of isolated storage.

DomainIdentity

Gets a domain identity that scopes isolated storage.

MaximumSize
Obsolete.
Obsolete.

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

Gets anIsolatedStorageScope 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.

Methods

NameDescription
CreateObjRef(Type)

Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.

(Inherited fromMarshalByRefObject)
Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited fromObject)
GetHashCode()

Serves as the default hash function.

(Inherited fromObject)
GetLifetimeService()
Obsolete.

Retrieves the current lifetime service object that controls the lifetime policy for this instance.

(Inherited fromMarshalByRefObject)
GetPermission(PermissionSet)

When implemented by a derived class, returns a permission that represents access to isolated storage from within a permission set.

GetType()

Gets theType of the current instance.

(Inherited fromObject)
IncreaseQuotaTo(Int64)

When overridden in a derived class, prompts a user to approve a larger quota size, in bytes, for isolated storage.

InitializeLifetimeService()
Obsolete.

Obtains a lifetime service object to control the lifetime policy for this instance.

(Inherited fromMarshalByRefObject)
InitStore(IsolatedStorageScope, Type, Type)

Initializes a newIsolatedStorage object.

InitStore(IsolatedStorageScope, Type)

Initializes a newIsolatedStorage object.

MemberwiseClone()

Creates a shallow copy of the currentObject.

(Inherited fromObject)
MemberwiseClone(Boolean)

Creates a shallow copy of the currentMarshalByRefObject object.

(Inherited fromMarshalByRefObject)
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.

(Inherited fromObject)

Applies to

See also

Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, seeour contributor guide.

Feedback

Was this page helpful?

YesNoNo

Need help with this topic?

Want to try using Ask Learn to clarify or guide you through this topic?

Suggest a fix?

In this article

Was this page helpful?

YesNo
NoNeed help with this topic?

Want to try using Ask Learn to clarify or guide you through this topic?

Suggest a fix?