adTempus API
ArcanaDevelopment.adTempus.Client Namespace / DataContext Class / DuplicateObject Method
The OID of the object to duplicate.


In This Topic
    DuplicateObject Method
    In This Topic
    Returns a duplicate copy of an object.
    Syntax
    'Declaration
     
    
    <NotNullAttribute()>
    Public Function DuplicateObject( _
       ByVal oid As OID _
    ) As ADTObject
    [NotNull()]
    public ADTObject DuplicateObject( 
       OID oid
    )
    [NotNull()]
    public:
    ADTObject^ DuplicateObject( 
       OID^ oid
    ) 

    Parameters

    oid
    The OID of the object to duplicate.

    Return Value

    A new copy of the object.
    Remarks

    This method should only be called for independent objects.

    Calling DuplicateObject is equivalent to calling ADTObject.Duplicate but eliminates the need to fetch the job from the server first.

    This method is intended for use in scenarios where you want to duplicate a top-level object and edit the new object in a different DataContext than the original (without this method you would need to fetch the object in the new context, then call Duplicate on the object to create the new copy).

    See Also