SPCachedObject constructor (String, Object, TimeSpan)
Instantiates an SPCachedObject that contains the specified object and that has the specified identifier 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, _
expireAfter As TimeSpan _
)
'Usage
Dim id As String
Dim data As Object
Dim expireAfter As TimeSpan
Dim instance As New SPCachedObject(id, data, _
expireAfter)
public SPCachedObject(
string id,
Object data,
TimeSpan expireAfter
)
Parameters
- id
Type: System.String
- data
Type: System.Object
- expireAfter
Type: System.TimeSpan