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


DataCacheSessionStoreProvider.SetItemExpireCallback Method

Sets a reference to the SessionStateItemExpireCallback delegate for the Session_OnEnd event defined in the Global.asax file.

Namespace: Microsoft.ApplicationServer.Caching
Assembly: Microsoft.ApplicationServer.Caching.Client (in microsoft.applicationserver.caching.client.dll)

Usage

'Usage
Dim instance As DataCacheSessionStoreProvider
Dim expireCallback As SessionStateItemExpireCallback
Dim returnValue As Boolean

returnValue = instance.SetItemExpireCallback(expireCallback)

Syntax

'Declaration
Public Overrides Function SetItemExpireCallback ( _
    expireCallback As SessionStateItemExpireCallback _
) As Boolean
public override bool SetItemExpireCallback (
    SessionStateItemExpireCallback expireCallback
)
public:
virtual bool SetItemExpireCallback (
    SessionStateItemExpireCallback^ expireCallback
) override
public boolean SetItemExpireCallback (
    SessionStateItemExpireCallback expireCallback
)
public override function SetItemExpireCallback (
    expireCallback : SessionStateItemExpireCallback
) : boolean

Parameters

  • expireCallback
    The SessionStateItemExpireCallback delegate for the Session_OnEnd event defined in the Global.asax file.

Return Value

Cache does not support notification of the expiration; therefore this method always returns false.

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