Partager via


StorageAccessor Members

Include Protected Members
Include Inherited Members

Retired Content

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

The latest Enterprise Library information can be found at the Enterprise Library site.

The StorageAccessor type exposes the following members.

Constructors

  Name Description
Protected method StorageAccessor(String)
Initializes a new instance of the StorageAccessor class. This constructor opens the storage if it's available, or throws if it's not already created.
Public method StorageAccessor(String, Int64)
Initializes a new instance of the StorageAccessor class.

Methods

  Name Description
Public method ChangeMaxSize
Changes the Maximum size that can be used by the storage. This method changes the max size, but does not trim entries if the new max size is smaller.
Public methodStatic member DeleteStorage
Deletes storage for the supplied storage name.
Public method Dispose()
Releases resources.
Protected method Dispose(Boolean)
Releases resources.
Public method Equals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected method Finalize
Releases resources.
(Overrides Object.Finalize().)
Public method GetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public method GetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected method MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public method Overwrite
Overwrites a portion of the content.
Public method ReadAll
Returns a dictionary with all the content saved in the storage.
Public method Remove
Removes the entry identified by id from the storage.
Public method Save
Saves the specified content.
Public method ToString
Returns a String that represents the current Object.
(Inherited from Object.)
Public methodStatic member TryOpen
Tries to open the storage that is currently on disk. If there is not a storage already created, nulla null reference (Nothing in Visual Basic) will be returned.

Properties

  Name Description
Public property IsReadOnly
Gets a value indicating whether this instance is read only.
Public property MaxSize
Gets the maximum size.
Public property UsedLogicalSize
Gets the logical size used for storage.
Public property UsedPhysicalSize
Gets an estimate of the physical size used for storage.

See Also

StorageAccessor Class

Microsoft.Practices.EnterpriseLibrary.Common.Utility Namespace