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