Share via


SimpleSyncServices.CleanupDeletedItems Method

Calls a cleanup operation to remove from the metadata store any metadata that is associated with deleted items.

Namespace:  Microsoft.Synchronization.SimpleProviders
Assembly:  Microsoft.Synchronization.SimpleProviders (in Microsoft.Synchronization.SimpleProviders.dll)

Syntax

'Declaration
Public Sub CleanupDeletedItems ( _
    cleanupInterval As TimeSpan _
)
'Usage
Dim instance As SimpleSyncServices
Dim cleanupInterval As TimeSpan

instance.CleanupDeletedItems(cleanupInterval)
public void CleanupDeletedItems(
    TimeSpan cleanupInterval
)
public:
void CleanupDeletedItems(
    TimeSpan cleanupInterval
)
member CleanupDeletedItems : 
        cleanupInterval:TimeSpan -> unit 
public function CleanupDeletedItems(
    cleanupInterval : TimeSpan
)

Parameters

  • cleanupInterval
    Type: System.TimeSpan
    Cleanup runs in the metadata store if cleanUpInterval is less than the elapsed time since the last cleanup. If you specify 0, cleanup runs regardless of when cleanup last ran.

Remarks

Make sure that all replicas have received deleted items before calling cleanup for those items.

See Also

Reference

SimpleSyncServices Class

Microsoft.Synchronization.SimpleProviders Namespace