Dela via


ForgottenKnowledge.ForgetTo Method

Updates the forgotten knowledge to reflect that all versions less than or equal to the specified version might have been forgotten, and that corresponding tombstones might have been deleted.

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

Syntax

'Declaration
Public Sub ForgetTo ( _
    knowledge As SyncKnowledge, _
    version As SyncVersion _
)
'Usage
Dim instance As ForgottenKnowledge
Dim knowledge As SyncKnowledge
Dim version As SyncVersion

instance.ForgetTo(knowledge, version)
public void ForgetTo(
    SyncKnowledge knowledge,
    SyncVersion version
)
public:
void ForgetTo(
    SyncKnowledge^ knowledge, 
    SyncVersion^ version
)
member ForgetTo : 
        knowledge:SyncKnowledge * 
        version:SyncVersion -> unit 
public function ForgetTo(
    knowledge : SyncKnowledge, 
    version : SyncVersion
)

Parameters

Exceptions

Exception Condition
ArgumentNullException

knowledge or version is a null reference (Nothing in Visual Basic).

InvalidKnowledgeVersionException

version is less than the current minimum version.

Remarks

When a replica cleans up the tombstone for an item, its associated provider must call this method and specify the version of the tombstone that was removed.

See Also

Reference

ForgottenKnowledge Class

Microsoft.Synchronization Namespace

Other Resources

Managing Tombstones