Share via


DataCacheSessionStoreProvider.SetItemExpireCallback Method

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

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

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

Syntax

'Declaration
Public Overrides Function SetItemExpireCallback ( _
    expireCallback As SessionStateItemExpireCallback _
) As Boolean
'Usage
Dim instance As DataCacheSessionStoreProvider
Dim expireCallback As SessionStateItemExpireCallback
Dim returnValue As Boolean

returnValue = instance.SetItemExpireCallback(expireCallback)
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.

See Also

Reference

DataCacheSessionStoreProvider Class
DataCacheSessionStoreProvider Members
Microsoft.Data.Caching Namespace