Interface IContentTransfer
The base interface for transferring contents.
Namespace: EPiServer.Core.Transfer
Assembly: EPiServer.dll
Version: 10.10.4Syntax
[Obsolete("use IContentExporter, IContentImporter, or IPropertyImporter instead")]
public interface IContentTransfer
Properties
ContentTransferContext
Gets the transfer context.
Declaration
IContentTransferContext ContentTransferContext { get; set; }
Property Value
Type | Description |
---|---|
IContentTransferContext | The transfer context. |
Methods
Export(RawContentInfo, AccessLevel)
Exports the specified content.
Declaration
ITransferContentData Export(RawContentInfo page, AccessLevel requiredSourceAccess)
Parameters
Type | Name | Description |
---|---|---|
RawContentInfo | page | The content. |
AccessLevel | requiredSourceAccess | The required source access. |
Returns
Type | Description |
---|---|
ITransferContentData | An ITransferContentData to represent a content to be transferred. |
Import(ITransferContentData, AccessLevel)
Imports the specified content.
Declaration
ContentReference Import(ITransferContentData content, AccessLevel requiredDestinationAccess)
Parameters
Type | Name | Description |
---|---|---|
ITransferContentData | content | The content. |
AccessLevel | requiredDestinationAccess | The required destination access. |
Returns
Type | Description |
---|---|
ContentReference | A content referense for the copied content. |
ImportProperties(IContent, RawContent)
Imports all properties from importedContent
to newContent
Declaration
void ImportProperties(IContent newContent, RawContent importedContent)
Parameters
Type | Name | Description |
---|---|---|
IContent | newContent | The page to import properties from. |
RawContent | importedContent | The imported page. |
ImportProperty(RawContent, RawProperty, PropertyData)
Imports a specific property.
Declaration
void ImportProperty(RawContent rawContent, RawProperty importedProp, PropertyData newProperty)
Parameters
Type | Name | Description |
---|---|---|
RawContent | rawContent | Content of the raw. |
RawProperty | importedProp | The imported prop. |
PropertyData | newProperty | The new property. |