Share via


SPCachedObject constructor (String, Object, List<KeyValuePair>, TimeSpan)

Instantiates an SPCachedObject that contains the specified object and that has the specified identifier, index key-value pair, and expiration TimeSpan properties.

Namespace:  Microsoft.Office.Server.ObjectCache
Assembly:  Microsoft.Office.Server (in Microsoft.Office.Server.dll)

Syntax

'Declaration
Public Sub New ( _
    id As String, _
    data As Object, _
    indexValues As List(Of KeyValuePair), _
    expireAfter As TimeSpan _
)
'Usage
Dim id As String
Dim data As Object
Dim indexValues As List(Of KeyValuePair)
Dim expireAfter As TimeSpan

Dim instance As New SPCachedObject(id, data, _
    indexValues, expireAfter)
public SPCachedObject(
    string id,
    Object data,
    List<KeyValuePair> indexValues,
    TimeSpan expireAfter
)

Parameters

See also

Reference

SPCachedObject class

SPCachedObject members

SPCachedObject overload

Microsoft.Office.Server.ObjectCache namespace