Restituisce il valore True se questo oggetto Entity possiede duplicati ma non è un duplicato.
Questo metodo restituisce tale valore se un oggetto Entity è True originale, ovvero, non è un duplicato. Se questo metodo restituisce il valore True, il metodo IsDuplicate deve restituire il valore False e il metodo HasDuplicates deve restituire il valore True. Un oggetto Entity deve possedere almeno un duplicato per essere considerato un oggetto originale.
VBScript
entity.IsOriginal
Perl
$entity->IsOriginal();
VBScript
'Display a window indicating the IDs of the ' the duplicates of this record If entity.IsOriginal Then ' Get the ID of this record originalID = entity.GetDisplayName ' Display the IDs of its duplicates duplicateLinkList = entity.GetDuplicates For Each duplicateLink In duplicateLinkList duplicateObj = duplicateLink.GetChildEntity duplicateID = duplicateObj.GetDisplayName OutputDebugString "Parent ID:" & originalID & _ " child Id:" & duplicateID Next End If
Perl
# Display a window indicating the IDs of the # the duplicates of this record if ($entity->IsOriginal()) { # Get the ID of this record $originalID = $entity->GetDisplayName(); # Find out how many duplicates there # are so the for loop can iterate them. # Display the IDs of its duplicates $duplicateLinkList = $entity->GetDuplicates(); $numdups = $duplicateLinkList->Count(); for ($x = 0; $x < $numdups ; $x++) { $duplicateLink = $duplicateLinkList->Item($x); $duplicateObj = $duplicateLink->GetChildEntity(); $duplicateID = $duplicateObj->GetDisplayName(); $session->OutputDebugString("Parent ID:".$originalID." child Id:".$duplicateID); } }