Exportera (0) Skriv ut
Visa allt
EN
Det här innehållet finns inte tillgängligt på ditt språk men här finns den engelska versionen,

DataCacheSessionStoreProvider Class

Note: This API is now obsolete.

A session storage provider that enables Web applications to store session-state data to a distributed cache system.

Namespace:  Microsoft.ApplicationServer.Caching
Assembly:  Microsoft.ApplicationServer.Caching.Client (in Microsoft.ApplicationServer.Caching.Client.dll)

[ObsoleteAttribute("This type is obsolete and will be removed in a future release. Please use Microsoft.Web.DistributedCache.DistributedCacheSessionStateStoreProvider in assembly Microsoft.Web.DistributedCache.dll instead", 
	false)]
public sealed class DataCacheSessionStoreProvider : SessionStateStoreProviderBase

The DataCacheSessionStoreProvider type exposes the following members.

  NameDescription
Public methodDataCacheSessionStoreProviderInitializes a new instance of the DataCacheSessionStoreProvider class.
Top

  NameDescription
Public propertyApplicationNameThe application name. This is used to differentiate sessions in the data source by application.
Public propertyDescription (Inherited from ProviderBase.)
Public propertyName (Inherited from ProviderBase.)
Top

  NameDescription
Public methodCreateNewStoreDataCreates a new data storage object for the current request. (Overrides SessionStateStoreProviderBase..::..CreateNewStoreData(HttpContext, Int32).)
Public methodCreateUninitializedItemAdds a new session state to the distributed cache. (Overrides SessionStateStoreProviderBase..::..CreateUninitializedItem(HttpContext, String, Int32).)
Public methodDisposeReleases all resources used by the DataCacheSessionStoreProvider class. (Overrides SessionStateStoreProviderBase..::..Dispose()()()().)
Public methodEndRequestCalled by the SessionStateModule class at the end of a request (Overrides SessionStateStoreProviderBase..::..EndRequest(HttpContext).)
Public methodEquals (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetItemReturns read-only session-state data from the cache. (Overrides SessionStateStoreProviderBase..::..GetItem(HttpContext, String, Boolean%, TimeSpan%, Object%, SessionStateActions%).)
Public methodGetItemExclusiveReturns and locks the read-only session-state data from the cache. (Overrides SessionStateStoreProviderBase..::..GetItemExclusive(HttpContext, String, Boolean%, TimeSpan%, Object%, SessionStateActions%).)
Public methodGetType (Inherited from Object.)
Public methodInitializeInitializes the distributed cache provider. (Overrides ProviderBase..::..Initialize(String, NameValueCollection).)
Public methodInitializeRequestInitializes the outgoing HTTP request. (Overrides SessionStateStoreProviderBase..::..InitializeRequest(HttpContext).)
Public methodReleaseItemExclusiveReleases a lock on the session data in the cache. (Overrides SessionStateStoreProviderBase..::..ReleaseItemExclusive(HttpContext, String, Object).)
Public methodRemoveItemDeletes session data from the cache. (Overrides SessionStateStoreProviderBase..::..RemoveItem(HttpContext, String, Object, SessionStateStoreData).)
Public methodResetItemTimeoutUpdates the expiration date and time of session data in the cache. (Overrides SessionStateStoreProviderBase..::..ResetItemTimeout(HttpContext, String).)
Public methodSetAndReleaseItemExclusiveUpdates the session item information in the cache with values from the current request and clears the lock on the session item. (Overrides SessionStateStoreProviderBase..::..SetAndReleaseItemExclusive(HttpContext, String, SessionStateStoreData, Object, Boolean).)
Public methodSetItemExpireCallbackSets a reference to the SessionStateItemExpireCallback delegate for the Session_OnEnd event defined in the Global.asax file. (Overrides SessionStateStoreProviderBase..::..SetItemExpireCallback(SessionStateItemExpireCallback).)
Public methodToString (Inherited from Object.)
Top

For more information, see the documentation for the base class SessionStateStoreProviderBase.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Gruppinnehåll

Lägg till
Visa:
© 2014 Microsoft