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
- id
Type: System.String
- data
Type: System.Object
indexValues
Type: System.Collections.Generic.List<KeyValuePair>A list of KeyValuePair objects that specify index key-value pairs that can be used to access this object from the cache.
- expireAfter
Type: System.TimeSpan