GetItemExclusive Method

MySQL Connector/Net

This method locks a session item and returns it from the database

Namespace:  MySql.Web.SessionState
Assembly:  MySql.Web (in MySql.Web.dll) Version: 6.2.2.0

Syntax

C#
public override SessionStateStoreData GetItemExclusive(
	HttpContext context,
	string id,
	out bool locked,
	out TimeSpan lockAge,
	out Object lockId,
	out SessionStateActions actions
)
Visual Basic (Declaration)
Public Overrides Function GetItemExclusive ( _
	context As HttpContext, _
	id As String, _
	<OutAttribute> ByRef locked As Boolean, _
	<OutAttribute> ByRef lockAge As TimeSpan, _
	<OutAttribute> ByRef lockId As Object, _
	<OutAttribute> ByRef actions As SessionStateActions _
) As SessionStateStoreData
Visual C++
public:
virtual SessionStateStoreData^ GetItemExclusive(
	HttpContext^ context, 
	String^ id, 
	[OutAttribute] bool% locked, 
	[OutAttribute] TimeSpan% lockAge, 
	[OutAttribute] Object^% lockId, 
	[OutAttribute] SessionStateActions% actions
) override

Parameters

context
Type: System.Web..::.HttpContext
The HttpContext object for the current request
id
Type: System..::.String
The session ID for the current request
locked
Type: System..::.Boolean %
true if the session item is locked in the database; otherwise, it is false.
lockAge
Type: System..::.TimeSpan %
TimeSpan object that indicates the amount of time the session item has been locked in the database.
lockId
Type: System..::.Object %
A lock identifier object.
actions
Type: System.Web.SessionState..::.SessionStateActions %
A SessionStateActions enumeration value that indicates whether or not the session is uninitialized and cookieless.

Return Value

See Also