Share via


SPCache.Trim Method (String, DateTime)

Trims the cache with the specified object type of all items that have not been accessed since the specified DateTime.

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

Syntax

'Declaration
Public Sub Trim ( _
    objectTypeName As String, _
    trimBefore As DateTime _
)
'Usage
Dim instance As SPCache
Dim objectTypeName As String
Dim trimBefore As DateTime

instance.Trim(objectTypeName, trimBefore)
public void Trim(
    string objectTypeName,
    DateTime trimBefore
)

Parameters

  • trimBefore
    Type: System.DateTime
    A DateTime representing the expiration date in UTC time.

See Also

Reference

SPCache Class

SPCache Members

Trim Overload

Microsoft.Office.Server.ObjectCache Namespace