DataCacheSessionStoreProvider.RemoveItem Method
Deletes session data from the cache.
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 lockId As Object
Dim item As SessionStateStoreData
instance.RemoveItem(context, id, lockId, item)
Syntax
'Declaration
Public Overrides Sub RemoveItem ( _
context As HttpContext, _
id As String, _
lockId As Object, _
item As SessionStateStoreData _
)
public override void RemoveItem (
HttpContext context,
string id,
Object lockId,
SessionStateStoreData item
)
public:
virtual void RemoveItem (
HttpContext^ context,
String^ id,
Object^ lockId,
SessionStateStoreData^ item
) override
public void RemoveItem (
HttpContext context,
String id,
Object lockId,
SessionStateStoreData item
)
public override function RemoveItem (
context : HttpContext,
id : String,
lockId : Object,
item : SessionStateStoreData
)
Parameters
- context
The HttpContext of the current request.
- id
The session identifier of the current request.
- lockId
The lock identifier of the current request.
- item
The SessionStateStoreData that represents the item to delete from the cache.
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