adTempus API
ArcanaDevelopment.adTempus.Client Namespace / DataContext Class / GetObject Method / GetObject(OID,ObjectFetchOptions) Method
The ADTObject.OID of the object to fetch
Options that control the fetch operation


In This Topic
    GetObject(OID,ObjectFetchOptions) Method
    In This Topic
    Gets the object with the specified OID, using options to control the way data is returned.
    Syntax
    'Declaration
     
    
    <CanBeNullAttribute()>
    Public Overloads Function GetObject( _
       ByVal oid As OID, _
       ByVal fetchOptions As ObjectFetchOptions _
    ) As ADTObject
    [CanBeNull()]
    public ADTObject GetObject( 
       OID oid,
       ObjectFetchOptions fetchOptions
    )
    [CanBeNull()]
    public:
    ADTObject^ GetObject( 
       OID^ oid,
       ObjectFetchOptions fetchOptions
    ) 

    Parameters

    oid
    The ADTObject.OID of the object to fetch
    fetchOptions
    Options that control the fetch operation

    Return Value

    The requested object.
    Exceptions
    ExceptionDescription
    Thrown if the caller does not have permission for the requested object.
    Thrown if the object does not exist
    Remarks

    This method allows you to select how the requested object is returned. See the remarks for ArcanaDevelopment.adTempus.Shared.ObjectFetchOptions for more information.

    All fetches of an object through this DataContext (or through objects that belong to it) are guaranteed to return the same copy of the object for as long as the DataContext exists.

    See Also