Megosztás a következőn keresztül:


DataCacheSessionStoreProvider.SetAndReleaseItemExclusive Method

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)

Usage

'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)

Syntax

'Declaration
Public Overrides Sub SetAndReleaseItemExclusive ( _
    context As HttpContext, _
    id As String, _
    item As SessionStateStoreData, _
    lockId As Object, _
    newItem As Boolean _
)
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.

Thread Safety

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

Platforms

Development Platforms

Visual Studio 2010 and later, .NET Framework 4

Target Platforms

Windows 7; Windows Server 2008 R2; Windows Server 2008 Service Pack 2; Windows Vista Service Pack 2

See Also

Reference

DataCacheSessionStoreProvider Class
DataCacheSessionStoreProvider Members
Microsoft.ApplicationServer.Caching Namespace

  ff425062(v=azure.10).md 2011-08-26