Share via


SPCache.GetCacheObject Method

Returns an object with the specified identifier from the cache with the specified object type.

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

Syntax

'Declaration
Public Function GetCacheObject ( _
    objectTypeName As String, _
    id As String _
) As SPCachedObject
'Usage
Dim instance As SPCache
Dim objectTypeName As String
Dim id As String
Dim returnValue As SPCachedObject

returnValue = instance.GetCacheObject(objectTypeName, _
    id)
public SPCachedObject GetCacheObject(
    string objectTypeName,
    string id
)

Parameters

Return Value

Type: Microsoft.Office.Server.ObjectCache.SPCachedObject
Returns SPCachedObject.

See Also

Reference

SPCache Class

SPCache Members

Microsoft.Office.Server.ObjectCache Namespace