Clones (creates a copy) of a document in the cache.
public static string CloneDocument(
ObjectCache sourceCache,
ObjectCache targetCache,
string sourceDocumentId,
CloneDocumentOptions options
)
Public Shared Function CloneDocument(
ByVal sourceCache As ObjectCache,
ByVal targetCache As ObjectCache,
ByVal sourceDocumentId As String,
ByVal options As CloneDocumentOptions
) As String
public:
static String^ CloneDocument(
ObjectCache^ sourceCache,
ObjectCache^ targetCache,
String^ sourceDocumentId,
CloneDocumentOptions^ options
)
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.
The ID of the new newly created document if successful.
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:
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.
Otherwise, this method calls CloneDocument(ObjectCache,ObjectCache,Uri,CloneDocumentOptions).
CloneDocument(ObjectCache,string,CloneDocumentOptions)
CloneDocument(ObjectCache,ObjectCache,Uri,CloneDocumentOptions)
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document