GetAllDuplicates

説明

この Entity のすべての重複 (重複の重複を含む) へのリンクを戻します。

このメソッドは、重複の重複を含む、すべての重複を戻します。オブジェクトの直接の重複のみを取得するには、代わりに GetDuplicates メソッドを呼び出します。

構文

VBScript

entity.GetAllDuplicates 

Perl

$entity->GetAllDuplicates(); 
識別子
説明
entity
Entity オブジェクトは、ユーザー データ レコードを表します。構文のこの部分を省略すると、フック内では、現在のデータ レコードに対応する Entity オブジェクトが想定されます (VBScript のみ)。
戻り値
Visual Basic の場合、Link オブジェクトの配列を含む Variant が戻されます。このオブジェクトに重複がない場合、戻り値は空の Variant です。

Perl の場合は、Links オブジェクトのコレクションが戻されます。

VBScript

以下の例では、entity1 はオリジナルのオブジェクトです。オブジェクト entity2entity3 は、entity1 の重複です。さらに、オブジェクト entity4entity3 の重複です。次のステートメントを指定します。

linkObjs = entity1.GetAllDuplicates 

linkObjs 変数は、次の 3 つの Link オブジェクトの配列です。

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();

   } 

フィードバック