←Select platform

CloneDocument(ObjectCache,ObjectCache,string,CloneDocumentOptions) Method

Summary

Clones (creates a copy) of a document in the cache.

Syntax
C#
C++/CLI
Python
public:  
   static String^ CloneDocument( 
      ObjectCache^ sourceCache, 
      ObjectCache^ targetCache, 
      String^ sourceDocumentId, 
      CloneDocumentOptions^ options 
   ) 
def CloneDocument(self,options): 

Parameters

sourceCache

The cache object containing the data for the source document. This value must not be null.

targetCache

The cache object that will contain the data for the destination document. This value must not be null and can be the same value as sourceCache to clone in the document in the same cache.

sourceDocumentId

ID to the source document in the cache. This value cannot be null.

options

Options to use during cloning.

Return Value

The ID of the new newly created document if successful.

Remarks

This method can be used to clone the data of an uploaded document in the same or a separate cache.

This method performs the following:

  1. If the document is has been loaded from the cache at least once, then it will load the source document and call LEADDocument.Clone, save the new document into the cache, and dispose it. Finally, it returns the ID of the newly created document.

  2. Otherwise, this method calls CloneDocument(ObjectCache,ObjectCache,Uri,CloneDocumentOptions).

Requirements

Target Platforms

Help Version 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Document Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.