public abstract class IsolatedStorage : MarshalByRefObject
|
| AssemblyIdentity | Read-only Gets an assembly identity used to scope isolated storage. |
| CurrentSize | Read-only Gets a value representing the current size of isolated storage. |
| DomainIdentity | Read-only Gets a domain identity that scopes isolated storage. |
| MaximumSize | Read-only Gets a value representing the maximum amount of space available for isolated storage. When overridden in a derived class, this value can take on different units of measure. |
| Scope | Read-only Gets an IsolatedStorageScope enumeration value specifying the scope used to isolate the store. |
| CreateObjRef (inherited from System.MarshalByRefObject) |
See base class member description: System.MarshalByRefObject.CreateObjRef Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. |
| Equals (inherited from System.Object) |
See base class member description: System.Object.Equals Derived from System.Object, the primary base class for all objects. |
| GetHashCode (inherited from System.Object) |
See base class member description: System.Object.GetHashCode Derived from System.Object, the primary base class for all objects. |
| GetLifetimeService (inherited from System.MarshalByRefObject) |
See base class member description: System.MarshalByRefObject.GetLifetimeService Retrieves the current lifetime service object that controls the lifetime policy for this instance. |
| GetType (inherited from System.Object) |
See base class member description: System.Object.GetType Derived from System.Object, the primary base class for all objects. |
| InitializeLifetimeService (inherited from System.MarshalByRefObject) |
See base class member description: System.MarshalByRefObject.InitializeLifetimeService Obtains a lifetime service object to control the lifetime policy for this instance. |
| Remove | When overridden in a derived class, removes the individual isolated store and all contained data. |
| ToString (inherited from System.Object) |
See base class member description: System.Object.ToString Derived from System.Object, the primary base class for all objects. |
| ctor #1 | Default constructor. This constructor is called by derived class constructors to initialize state in this type. |
| SeparatorExternal | Read-only Gets a backslash character that can be used in a directory string. When overridden in a derived class, another character might be returned. |
| SeparatorInternal | Read-only Gets a period character that can be used in a directory string. When overridden in a derived class, another character might be returned. |
| Finalize (inherited from System.Object) |
See base class member description: System.Object.Finalize Derived from System.Object, the primary base class for all objects. |
| GetPermission | When implemented by a derived class, returns a permission that represents access to isolated storage from within a permission set. |
| InitStore | Initializes a new instance of the IsolatedStorage object. |
| MemberwiseClone (inherited from System.Object) |
See base class member description: System.Object.MemberwiseClone Derived from System.Object, the primary base class for all objects. |
Hierarchy:
protected IsolatedStorage(); |
public object AssemblyIdentity {get;}
|
| Exception Type | Condition |
|---|---|
| SecurityException | The code lacks the required SecurityPermission to access this object. |
[CLSCompliant(false)] |
| Exception Type | Condition |
|---|---|
| InvalidOperationException | The current size of the isolated store is undefined. |
public object DomainIdentity {get;}
|
| Exception Type | Condition |
|---|---|
| SecurityException | The code lacks the required SecurityPermission to access this object. These permissions are granted by the runtime based on security policy. |
| InvalidOperationException | The IsolatedStorage is not isolated by the domain IsolatedStorageScope. |
[CLSCompliant(false)] |
| Exception Type | Condition |
|---|---|
| InvalidOperationException | The quota has not been defined. |
You cannot set IsolatedStorage.MaximumSize, but the quota is configured in the security policy, and can be set. 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 implements this property.
public IsolatedStorageScope Scope {get;}
|
protected virtual char SeparatorExternal {get;}
|
protected virtual char SeparatorInternal {get;}
|
requestedType
| Exception Type | Condition |
|---|---|
| RemotingException | This instance is not a valid remoting object. |
~IsolatedStorage(); |
public virtual int GetHashCode(); |
public object GetLifetimeService(); |
protected abstract IsolatedStoragePermission GetPermission( |
ps
See derived classes for more information. IsolatedStorageFile.GetPermission implements this method.
public Type GetType(); |
public virtual object InitializeLifetimeService(); |
public class MyClass : MarshalByRefObject
{
public override Object InitializeLifetimeService()
{
ILease lease = (ILease)base.InitializeLifetimeService();
if (lease.CurrentState == LeaseState.Initial)
{
lease.InitialLeaseTime = TimeSpan.FromMinutes(1);
lease.SponsorshipTimeout = TimeSpan.FromMinutes(2);
lease.RenewOnCallTime = TimeSpan.FromSeconds(2);
}
return lease;
}
}
protected void InitStore( |
scope
domainEvidenceType
assemblyEvidenceType
| Exception Type | Condition |
|---|---|
| IsolatedStorageException | The assembly specified has insufficient permissions to create isolated stores. |
-or-
IsolatedStorageContainment.AssemblyIsolationByUser
-or-
IsolatedStorageContainment.DomainIsolationByRoamingUser
-or-
protected object MemberwiseClone(); |
public abstract void Remove(); |
public virtual string ToString(); |