November Happy Hour will be moved to Thursday December 5th.

Class ContentTransferContext

Base class for context used in import/export.

Inheritance
System.Object
ContentTransferContext
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Core.Transfer
Assembly: EPiServer.dll
Version: 11.20.7
Syntax
public class ContentTransferContext

Constructors

ContentTransferContext()

Constructor

Declaration
public ContentTransferContext()

Properties

ContentLanguages

Gets the content languages to transfer, if no list of languages is in the list all languages is transfered.

Declaration
public virtual IList<string> ContentLanguages { get; }
Property Value
Type Description
System.Collections.Generic.IList<System.String>

The content languages to be transfered.

ContentTypes

The content types to export.

Declaration
public virtual IList<ContentType> ContentTypes { get; }
Property Value
Type Description
System.Collections.Generic.IList<ContentType>

ContentTypesMap

Gets the look up table between incoming content type names and existing content type GUIDs.

Declaration
public virtual IDictionary<string, Guid> ContentTypesMap { get; }
Property Value
Type Description
System.Collections.Generic.IDictionary<System.String, System.Guid>

The map content type name from package and existing content type GUID.

Declaration
public virtual ContentReference CopiedContentLink { get; set; }
Property Value
Type Description
ContentReference

DestinationRoot

The destination root where new content items should be created.

Declaration
public virtual ContentReference DestinationRoot { get; set; }
Property Value
Type Description
ContentReference

ExcludeFiles

Gets or sets a value indicating whether to exclude refered files.

Declaration
public virtual bool ExcludeFiles { get; set; }
Property Value
Type Description
System.Boolean

true if files should be excluded; otherwise, false.

FileTransfer

Gets the file transfer object, that holds the functionality to transfer files..

Declaration
public virtual IFileTransfer FileTransfer { get; set; }
Property Value
Type Description
IFileTransfer

The file transfer object.

ForceNewIdentitiesOnExport

Gets or sets a value indicating whether to force new content identifiers for the mirrored content.

Declaration
public virtual bool ForceNewIdentitiesOnExport { get; set; }
Property Value
Type Description
System.Boolean

true if new identies should be forced; otherwise, false.

ImplicitContents

Gets the contents that have been implicitly added to package.

Declaration
public virtual Queue<ExportSource> ImplicitContents { get; }
Property Value
Type Description
System.Collections.Generic.Queue<ExportSource>

The implicit contents.

Remarks

The typical case for an implicitly added content is when a page references a global block. In that case the global block is implicitly added to the export package.

IncludeImplicitContentDependencies

Gets or sets a value indicating whether to implicitly include referenced content items.

Declaration
public virtual bool IncludeImplicitContentDependencies { get; set; }
Property Value
Type Description
System.Boolean

true if referenced items should be implicitly included; otherwise, false.

IncludeImplicitContentTypeDependencies

Gets or sets a value indicating whether to implicitly include referenced content types.

Declaration
public virtual bool IncludeImplicitContentTypeDependencies { get; set; }
Property Value
Type Description
System.Boolean

true if referenced content types should be implicitly included; otherwise, false.

KeepIdentity

Allow content to be synchronized during import operation.

Declaration
public virtual bool KeepIdentity { get; set; }
Property Value
Type Description
System.Boolean

LinkGuidMap

Gets the look up table between incoming content Guids (page / files) and outgoing links.

Declaration
public virtual IDictionary<Guid, Guid> LinkGuidMap { get; set; }
Property Value
Type Description
System.Collections.Generic.IDictionary<System.Guid, System.Guid>

The map old GUID new link.

Log

Gets the log handler for the transfer functionality.

Declaration
public virtual TransferLogger Log { get; set; }
Property Value
Type Description
TransferLogger

The log handler.

SaveAction

Gets or sets the action that should be used when importing content.

Declaration
public virtual SaveAction SaveAction { get; set; }
Property Value
Type Description
SaveAction

SourceRoots

Gets the source roots for the transfered content.

Declaration
public virtual IList<ExportSource> SourceRoots { get; }
Property Value
Type Description
System.Collections.Generic.IList<ExportSource>

The source roots for the transfered content.

TransferType

Gets or sets the type for the transfer operation.

Declaration
public virtual TypeOfTransfer TransferType { get; set; }
Property Value
Type Description
TypeOfTransfer

Extension Methods