SPCache.Trim Method (DateTime)

Trims all caches of all objects 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 ( _
    trimBefore As DateTime _
)
'Usage
Dim instance As SPCache
Dim trimBefore As DateTime

instance.Trim(trimBefore)
public void Trim(
    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