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