Class CopyMigrationOptions
Optional options that can be passed to the migration job
Inheritance
System.Object
CopyMigrationOptions
Assembly: PnP.Core.dll
Syntax
public class CopyMigrationOptions : object
Properties
This allows the item to move even if the target has a mismatched schema definition from the source list.
Declaration
public bool AllowSchemaMismatch { get; set; }
Property Value
This allows the move to take place if the target file has older version. By default it’s disallowed to prevent data loss.
Declaration
public bool AllowSmallerVersionLimitOnDestination { get; set; }
Property Value
This indicates whether a file with a share lock can still be moved in a move job. If you want to move a file that is locked, you need to set this.
Declaration
public bool BypassSharedLock { get; set; }
Property Value
For this operation, only the root level folder of the URL is copied. The sub-folders or files within the folder will not be moved or copied.
Declaration
public bool ExcludeChildren { get; set; }
Property Value
If not specified, the version history will be ignored and not moved to the destination.
Declaration
public bool IgnoreVersionHistory { get; set; }
Property Value
By default, this is set to copy. For a move operation, set this parameter to true.
Declaration
public bool IsMoveMode { get; set; }
Property Value
Once set, this move operation is similar to copy. The file will move to destination, but the source content will not be deleted. If set, this will make a copy with the version history and preserve the original metadata. No source item deletions occurs at the end.
This is not like the normal copy, which only copies the most recent major version and doesn't maintain all the metadata.
Declaration
public bool MoveButKeepSource { get; set; }
Property Value
If a name conflict occurs at the target site, the default reports a failure.
Declaration
public SPMigrationNameConflictBehavior NameConflictBehavior { get; set; }
Property Value