Exemplo n.º 1
0
 /// <summary>
 /// Creates a copy of this object in the vault.
 /// </summary>
 /// <param name="source">The source object to copy.</param>
 /// <param name="objectCopyOptions">Options defining how to copy the object.</param>
 /// <returns>The new object.</returns>
 /// <remarks>No attempt is made to roll back anything in case of an exception.
 /// It is recommended that the <paramref name="source"/> is loaded from a transactional vault reference
 /// so that the transaction is rolled back in case of issue.</remarks>
 public static ObjVerEx CreateCopy
 (
     this ObjVerEx source,
     ObjectCopyOptions objectCopyOptions = null
 )
 {
     return(source.CreateCopy
            (
                objectCopyOptions ?? new ObjectCopyOptions(),
                new ObjectCopyCreator()
            ));
 }