SessionStateItemExpireCallback 委托

定义

表示处理会话状态模块的 End 事件的方法。Represents the method that handles the End event of a session-state module.

public delegate void SessionStateItemExpireCallback(System::String ^ id, SessionStateStoreData ^ item);
public delegate void SessionStateItemExpireCallback(string id, SessionStateStoreData item);
type SessionStateItemExpireCallback = delegate of string * SessionStateStoreData -> unit
Public Delegate Sub SessionStateItemExpireCallback(id As String, item As SessionStateStoreData)

参数

id
String

正在结束会话的 SessionID 参数。The SessionID parameter of the session that is ending.

item
SessionStateStoreData

SessionStateStoreData 对象,包含正在结束会话的会话状态数据。A SessionStateStoreData object containing the session-state data for the session that is ending.

继承
SessionStateItemExpireCallback

注解

委托用于使实现能够从 global.asax 文件调用Session_OnEnd事件。 SessionStateStoreProviderBase SessionStateItemExpireCallbackThe SessionStateItemExpireCallback delegate is used to enable a SessionStateStoreProviderBase implementation to call the Session_OnEnd event from the Global.asax file.

有关详细信息, 请参阅为SetItemExpireCallback方法提供的备注。For more information, see the remarks provided for the SetItemExpireCallback method.

扩展方法

GetMethodInfo(Delegate)

获取指示指定委托表示的方法的对象。Gets an object that represents the method represented by the specified delegate.

适用于

另请参阅