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

In This Topic
    GetPrimaryObject Method (TokenFindResult)
    In This Topic
    Gets the top-level object in which the match was found.
    Syntax
    'Declaration
     
    
    Public Function GetPrimaryObject() As ADTObject
    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.TokenSearchOptions.ReturnObjects to true so that all objects are returned at once, rather than requiring multiple calls to the server to fetch them individually.
    See Also