The SearchReplaceResult indicates the top-level object (such as a Job or JobGroup) that contains the match. If the matching text was found within the top-level object itself, SecondaryObjectOID will be a null reference (Nothing in Visual Basic). If the match was found in a dependent object, SecondaryObjectOID will be set to the OID of that object. For example, if the match was found in a Task, the SearchReplaceResult.PrimaryObjectOID will be set to the OID of the job. The SecondaryObjectOID of the SearchReplaceMatch will be set to the OID of the task.