CloneDocument(ObjectCache,ObjectCache,string,CloneDocumentOptions) Method (original) (raw)

Summary

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

Syntax

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.