GetAllDuplicates

Description

Returns links to all of the duplicates of this Entity, including duplicates of duplicates.

This method returns all duplicates, including duplicates of duplicates. To obtain only the immediate duplicates of an object, call the GetDuplicates method instead.

Syntaxe

VBScript

entity.GetAllDuplicates 

Perl

$entity->GetAllDuplicates(); 
Identificateur
Description
entity
Objet Entity représentant un enregistrement de données utilisateur. Si vous omettez cette partie de la syntaxe au sein d'un point d'ancrage, l'objet Entity correspondant à l'enregistrement de données en cours est faux (VBScript uniquement).
Valeur renvoyée
For Visual Basic, a Variant containing an Array of Link Objects is returned. If this object has no duplicates, the return value is an Empty Variant.

For Perl, a Links Object collection is returned.

Exemples

VBScript

In the following example, entity1 is the original object. The objects entity2 and entity3 are duplicates of entity1. In addition, the object entity4 is a duplicate of entity3. Given the following statement:

linkObjs = entity1.GetAllDuplicates 

The linkObjs variable would be an array of three Link Objects:

Perl

$linkobjs = $entity1->GetAllDuplicates();



# Find out how many duplicates there

# are so the for loop can iterate them 

$numLinks = $linkobjs->Count();



for ($x = 0; $x < $numLinks ; $x++)

   {

   $linkobj = $linkobjs->Item($x);

   $childentity = $linkobj->GetChildEntity();

   } 

Commentaires