DefaultSessionStateProvider.GetItemExclusive Method
Gets a session and lock it.
Namespace: System.Web.Providers
Assembly: System.Web.Providers (in System.Web.Providers.dll)
Syntax
'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
'Usage
Dim instance As DefaultSessionStateProvider
Dim context As HttpContext
Dim id As String
Dim locked As Boolean
Dim lockAge As TimeSpan
Dim lockId As Object
Dim actions As SessionStateActions
Dim returnValue As SessionStateStoreData
returnValue = instance.GetItemExclusive(context, _
id, locked, lockAge, lockId, actions)
public override SessionStateStoreData GetItemExclusive(
HttpContext context,
string id,
out bool locked,
out TimeSpan lockAge,
out Object lockId,
out SessionStateActions actions
)
public:
virtual SessionStateStoreData^ GetItemExclusive(
HttpContext^ context,
String^ id,
[OutAttribute] bool% locked,
[OutAttribute] TimeSpan% lockAge,
[OutAttribute] Object^% lockId,
[OutAttribute] SessionStateActions% actions
) override
abstract GetItemExclusive :
context:HttpContext *
id:string *
locked:bool byref *
lockAge:TimeSpan byref *
lockId:Object byref *
actions:SessionStateActions byref -> SessionStateStoreData
override GetItemExclusive :
context:HttpContext *
id:string *
locked:bool byref *
lockAge:TimeSpan byref *
lockId:Object byref *
actions:SessionStateActions byref -> SessionStateStoreData
public override function GetItemExclusive(
context : HttpContext,
id : String,
locked : boolean,
lockAge : TimeSpan,
lockId : Object,
actions : SessionStateActions
) : SessionStateStoreData
Parameters
- context
Type: System.Web.HttpContext
The HTTP context.
- id
Type: System.String
The session item identifier.
- locked
Type: System.Boolean
When this method returns, contains true if the item is locked; otherwise, false.
- lockAge
Type: System.TimeSpan
When this method returns, contains the total time the item has been locked.
- lockId
Type: System.Object
When this method returns, contains the locking identifier.
- actions
Type: System.Web.SessionState.SessionStateActions
When this method returns, contains the session state actions.
Return Value
Type: System.Web.SessionState.SessionStateStoreData
The returned session item.
See Also
Reference
DefaultSessionStateProvider Class
System.Web.Providers Namespace