GetAllDuplicates

설명

중복의 중복을 비롯하여 해당 Entity의 모든 중복에 대한 링크를 리턴합니다.

이 메소드는 중복의 중복을 비롯하여 모든 중복을 리턴합니다. 오브젝트의 즉각적 중복을 확보하려면 대신 GetDuplicates 메소드를 호출하십시오.

구문

VBScript

entity.GetAllDuplicates 

Perl

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

Perl의 경우, Links 오브젝트 콜렉션이 리턴됩니다.

예제

VBScript

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

linkObjs = entity1.GetAllDuplicates 

linkObjs 변수는 다음과 같은 세 개의 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();

   } 

피드백