Share via


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

  • 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.

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