Megosztás a következőn keresztül:


DataCacheSessionStoreProvider.CreateNewStoreData Method

Creates a new data storage object for the current request.

Namespace: Microsoft.ApplicationServer.Caching
Assembly: Microsoft.ApplicationServer.Caching.Client (in microsoft.applicationserver.caching.client.dll)

Usage

'Usage
Dim instance As DataCacheSessionStoreProvider
Dim context As HttpContext
Dim timeout As Integer
Dim returnValue As SessionStateStoreData

returnValue = instance.CreateNewStoreData(context, timeout)

Syntax

'Declaration
Public Overrides Function CreateNewStoreData ( _
    context As HttpContext, _
    timeout As Integer _
) As SessionStateStoreData
public override SessionStateStoreData CreateNewStoreData (
    HttpContext context,
    int timeout
)
public:
virtual SessionStateStoreData^ CreateNewStoreData (
    HttpContext^ context, 
    int timeout
) override
public SessionStateStoreData CreateNewStoreData (
    HttpContext context, 
    int timeout
)
public override function CreateNewStoreData (
    context : HttpContext, 
    timeout : int
) : SessionStateStoreData

Parameters

  • context
    The HttpContext for the current request.
  • timeout
    The session state Timeout value for the new SessionStateStoreData object.

Return Value

A SessionStateStoreData object, used for storing session data in the distributed cache.

Remarks

For more information, see the documentation for the base class SessionStateStoreProviderBase.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Visual Studio 2010 and later, .NET Framework 4

Target Platforms

Windows 7; Windows Server 2008 R2; Windows Server 2008 Service Pack 2; Windows Vista Service Pack 2

See Also

Reference

DataCacheSessionStoreProvider Class
DataCacheSessionStoreProvider Members
Microsoft.ApplicationServer.Caching Namespace

  ff425062(v=azure.10).md 2011-08-26