GetDuplicates

설명

해당 오브젝트의 즉각적 중복에 대한 링크를 리턴합니다.

이 메소드는 즉각적 중복만 리턴합니다. 중복의 중복은 리턴하지 않습니다. 중복의 중복을 비롯하여 제공된 Entity 오브젝트의 모든 중복을 리턴하려면 GetAllDuplicates 메소드를 호출하십시오.

구문

VBScript

entity.GetDuplicates 

Perl

$entity->GetDuplicates(); 
ID
설명
entity
사용자 데이터 레코드를 나타내는 Entity 오브젝트. 후크 내에서 구문에 이 부분을 생략할 경우, Entity 오브젝트가 현재 데이터 레코드에 해당한다고 가정합니다(VBScript에만 해당).
Return value
Visual Basic의 경우, Link 오브젝트 배열을 포함하는 Variant 값이 리턴됩니다. 각 Link 오브젝트는 해당 오브젝트의 중복을 가리킵니다. 이 오브젝트에 중복이 없으면 빈 Variant 값이 리턴됩니다. Perl의 경우, Links 오브젝트 콜렉션이 리턴됩니다.

예제

VBScript

다음 예제에서는 entity1가 원본 오브젝트입니다. entity2 및 entity3 오브젝트는 entity1의 중복입니다. 또한 entity4 오브젝트는 entity3의 중복입니다. 예를 들어, 다음과 같은 명령문이 있습니다.

linkObjs = entity1.GetDuplicates 

linkObjs 변수는 다음과 같은 Link 오브젝트 배열입니다.

Perl

$dups = $entity->GetDuplicates();



# Find out how many duplicates there

# are so the for loop can iterate them 

$numdups = $dups->Count();



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

   {

   $dupvar = $dups->Item($x);

   $childentity = $dupvar->GetChildEntity();

   } 

피드백