この重複オブジェクトの親としてマークされている Entity オブジェクトを戻します。
このメソッドは、このオブジェクトの直接の親である Entity オブジェクトを取得する場合に使用します。
戻されたオブジェクト自体が、別の Entity オブジェクトの重複である場合があります。真のオリジナルを検出するには、戻されたオブジェクトの IsDuplicate メソッドを呼び出します。IsDuplicate から True が戻された場合、そのオブジェクトの GetOriginal メソッドを呼び出して、チェーン内の次の Entity オブジェクトを取得します。IsDuplicate から False が戻されるまで (この時点で、真のオリジナルが検出されます)、IsDuplicate および GetOriginal メソッドの呼び出しを続けます。
VBScript
' Display a window indicating which record is ' the original of this record If entity.IsDuplicate Then ' Get the ID of this record duplicateID = entity.GetDisplayName ' Get the ID of the original record set originalObj = entity.GetOriginal originalID = originalObj.GetDisplayName OutputDebugString "The parent of record " & duplicateID & _ " is record " & originalID End If
Perl
# Display a window indicating which record is # the original of this record if ($entity->IsDuplicate()) { # Get the ID of this record $duplicateID = $entity->GetDisplayName (); # Get the ID of the original record $originalObj =$entity->GetOriginal(); $originalID = $originalObj->GetDisplayName(); $session->OutputDebugString("The parent of record ".$duplicateID." is record ".$originalID); }