DataCacheSessionStoreProvider.SetAndReleaseItemExclusive Method (HttpContext, String, SessionStateStoreData, Object, Boolean)
Updates the session item information in the cache with values from the current request and clears the lock on the session item.
Namespace: Microsoft.ApplicationServer.Caching
Assembly: Microsoft.ApplicationServer.Caching.Client (in Microsoft.ApplicationServer.Caching.Client.dll)
Syntax
public override void SetAndReleaseItemExclusive(
HttpContext context,
string id,
SessionStateStoreData item,
object lockId,
bool newItem
)
public:
virtual void SetAndReleaseItemExclusive(
HttpContext^ context,
String^ id,
SessionStateStoreData^ item,
Object^ lockId,
bool newItem
) override
override SetAndReleaseItemExclusive :
context:HttpContext *
id:string *
item:SessionStateStoreData *
lockId:Object *
newItem:bool -> unit
Public Overrides Sub SetAndReleaseItemExclusive (
context As HttpContext,
id As String,
item As SessionStateStoreData,
lockId As Object,
newItem As Boolean
)
Parameters
context
Type: System.Web.HttpContextThe HttpContext of the current request.
id
Type: System.StringThe session identifier of the current request..
item
Type: System.Web.SessionState.SessionStateStoreDataThe SessionStateStoreData object that contains the current session values to be stored.
lockId
Type: System.ObjectThe lock identifier for the current request.
newItem
Type: System.BooleanIf true, identifies the session item as a new item if true; otherwise, identifies the session item as an existing item.
Remarks
For more information, see the documentation for the base class SessionStateStoreProviderBase.
See Also
DataCacheSessionStoreProvider Class
Microsoft.ApplicationServer.Caching Namespace
Return to top