DefaultSessionStateProvider.GetItem Method (HttpContext, String, Boolean, TimeSpan, Object, SessionStateActions)
Gets a session item.
Namespace: System.Web.Providers
Assembly: System.Web.Providers (in System.Web.Providers.dll)
Syntax
public override SessionStateStoreData GetItem(
HttpContext context,
string id,
out bool locked,
out TimeSpan lockAge,
out object lockId,
out SessionStateActions actions
)
public:
virtual SessionStateStoreData^ GetItem(
HttpContext^ context,
String^ id,
[OutAttribute] bool% locked,
[OutAttribute] TimeSpan% lockAge,
[OutAttribute] Object^% lockId,
[OutAttribute] SessionStateActions% actions
) override
override GetItem :
context:HttpContext *
id:string *
locked:bool byref *
lockAge:TimeSpan byref *
lockId:Object byref *
actions:SessionStateActions byref -> SessionStateStoreData
Public Overrides Function GetItem (
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
Parameters
context
Type: System.Web.HttpContextThe HTTP context.
id
Type: System.StringThe session item identifier.
locked
Type: System.BooleanWhen this method returns, contains true if the item is locked; otherwise, false.
lockAge
Type: System.TimeSpanWhen this method returns, contains the total time the item has been locked.
lockId
Type: System.ObjectWhen this method returns, contains the locking identifier.
actions
Type: System.Web.SessionState.SessionStateActionsWhen this method returns, contains the session state actions.
Return Value
Type: System.Web.SessionState.SessionStateStoreData
The returned session item.
See Also
DefaultSessionStateProvider Class
System.Web.Providers Namespace
ASP.NET Identity
Return to top