adTempus API
ArcanaDevelopment.adTempus.Client Namespace / SearchReplaceResult Class / GetPrimaryObject Method


In This Topic
    GetPrimaryObject Method
    In This Topic
    Gets the top-level object in which the match was found.
    Syntax
    'Declaration
     
    
    <NotNullAttribute()>
    Public Function GetPrimaryObject() As ADTObject
    [NotNull()]
    public ADTObject GetPrimaryObject()
    [NotNull()]
    public:
    ADTObject^ GetPrimaryObject(); 
    Remarks
    If ObjectSearchOptions.ReturnObjects was set to false, the object will be automatically fetched from the server if necessary. If you plan to need the contents of the objects, set ArcanaDevelopment.adTempus.Shared.ObjectSearchOptions.ReturnObjects to true when calling DataContext.SearchAndReplace so that all objects are returned at once, rather than requiring multiple calls to the server to fetch them individually.
    See Also