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

  • id
    Type: System.String

    The session identifier of the current request..

  • lockId
    Type: System.Object

    The lock identifier for the current request.

  • newItem
    Type: System.Boolean

    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

DataCacheSessionStoreProvider Class
Microsoft.ApplicationServer.Caching Namespace

Return to top