Share via


ItemChange.GetLearnedKnowledgeWithPrerequisite Method

Gets the knowledge that the destination replica learns when the destination provider applies this change, based on the prerequisite knowledge that is associated with the change.

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

Syntax

'Declaration
Public Function GetLearnedKnowledgeWithPrerequisite ( _
    destinationKnowledge As SyncKnowledge _
) As SyncKnowledge
'Usage
Dim instance As ItemChange
Dim destinationKnowledge As SyncKnowledge
Dim returnValue As SyncKnowledge

returnValue = instance.GetLearnedKnowledgeWithPrerequisite(destinationKnowledge)
public SyncKnowledge GetLearnedKnowledgeWithPrerequisite(
    SyncKnowledge destinationKnowledge
)
public:
SyncKnowledge^ GetLearnedKnowledgeWithPrerequisite(
    SyncKnowledge^ destinationKnowledge
)
member GetLearnedKnowledgeWithPrerequisite : 
        destinationKnowledge:SyncKnowledge -> SyncKnowledge 
public function GetLearnedKnowledgeWithPrerequisite(
    destinationKnowledge : SyncKnowledge
) : SyncKnowledge

Parameters

  • destinationKnowledge
    Type: Microsoft.Synchronization.SyncKnowledge
    Knowledge of a change unit that is contained in this change is not added to the returned learned knowledge when destinationKnowledge contains the prerequisite knowledge for the change unit.

Return Value

Type: Microsoft.Synchronization.SyncKnowledge
The knowledge that the destination replica learns when the destination provider applies this change, based on the prerequisite knowledge that is associated with the change.

Exceptions

Exception Condition
ArgumentNullException

A required parameter is a null reference (Nothing in Visual Basic).

InvalidOperationException

The object contains data that is not valid.

ChangeNeedsKnowledgeException

This object does not contain prerequisite knowledge.

See Also

Reference

ItemChange Class

Microsoft.Synchronization Namespace