Share via


DataCacheSessionStoreProvider.SetAndReleaseItemExclusive Method

[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Updates the session item information in the cache with values from the current request and clears the lock on the session item.

Namespace: Microsoft.Data.Caching
Assembly: ClientLibrary (in clientlibrary.dll)

Syntax

'Declaration
Public Overrides Sub SetAndReleaseItemExclusive ( _
    context As HttpContext, _
    id As String, _
    item As SessionStateStoreData, _
    lockId As Object, _
    newItem As Boolean _
)
'Usage
Dim instance As DataCacheSessionStoreProvider
Dim context As HttpContext
Dim id As String
Dim item As SessionStateStoreData
Dim lockId As Object
Dim newItem As Boolean

instance.SetAndReleaseItemExclusive(context, id, item, lockId, newItem)
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
public void SetAndReleaseItemExclusive (
    HttpContext context, 
    String id, 
    SessionStateStoreData item, 
    Object lockId, 
    boolean newItem
)
public override function SetAndReleaseItemExclusive (
    context : HttpContext, 
    id : String, 
    item : SessionStateStoreData, 
    lockId : Object, 
    newItem : boolean
)

Parameters

  • context
    The HttpContext of the current request.
  • id
    The session identifier of the current request.
  • item
    The SessionStateStoreData object that contains the current session values to be stored.
  • lockId
    The lock identifier for the current request.
  • newItem
    If 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

Reference

DataCacheSessionStoreProvider Class
DataCacheSessionStoreProvider Members
Microsoft.Data.Caching Namespace