Share via


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

  • parentId
    Type: System.String

    The identifier of the parent object.

See also

Reference

SPCachedObject class

SPCachedObject members

SPCachedObject overload

Microsoft.Office.Server.ObjectCache namespace