SaveChangeContext.GetUpdatedDestinationKnowledge Method

Gets updated knowledge and forgotten knowledge objects that represent the state of the destination knowledge after this change is applied.

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

Syntax

'Declaration
Public Sub GetUpdatedDestinationKnowledge ( _
    <OutAttribute> ByRef knowledge As SyncKnowledge, _
    <OutAttribute> ByRef forgottenKnowledge As ForgottenKnowledge _
)
'Usage
Dim instance As SaveChangeContext
Dim knowledge As SyncKnowledge
Dim forgottenKnowledge As ForgottenKnowledge

instance.GetUpdatedDestinationKnowledge(knowledge, forgottenKnowledge)
public void GetUpdatedDestinationKnowledge (
    out SyncKnowledge knowledge,
    out ForgottenKnowledge forgottenKnowledge
)
public:
void GetUpdatedDestinationKnowledge (
    [OutAttribute] SyncKnowledge^% knowledge, 
    [OutAttribute] ForgottenKnowledge^% forgottenKnowledge
)
public void GetUpdatedDestinationKnowledge (
    /** @attribute OutAttribute() */ /** @ref */ SyncKnowledge knowledge, 
    /** @attribute OutAttribute() */ /** @ref */ ForgottenKnowledge forgottenKnowledge
)
JScript does not support passing value-type arguments by reference.

Parameters

  • knowledge
    The updated knowledge for the destination.
  • forgottenKnowledge
    The updated forgotten knowledge for the destination.

Remarks

The knowledge objects that are returned by this method should directly replace the existing knowledge objects on the destination.

Before a provider calls this method, the provider must report any recoverable errors by using RecordRecoverableErrorForItem.

This method can only be called one time per change. This method throws InvalidOperationException on any call but the first.

See Also

Reference

SaveChangeContext Class
SaveChangeContext Members
Microsoft.Synchronization Namespace