다음을 통해 공유


ISPCache.Trim Method (String, DateTime)

Trims the cache with the specified object type of all objects whose expiration date precedes the specified DateTime.

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

Syntax

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

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

Parameters

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

See Also

Reference

ISPCache Interface

ISPCache Members

Trim Overload

Microsoft.Office.Server.ObjectCache Namespace