Class ExportImportHandledTransfer
The import and export uses the class to do following: It creates exportimporthandlermap.xml file which contains type handler information In the export side: Create a specific xml file for each handler and the export handle writes custom data to it. In the import side: The import handler be called with the exported data.
Inheritance
Implements
Inherited Members
Namespace: EPiServer.Core.Transfer
Assembly: EPiServer.dll
Version: 9.12.2Syntax
public class ExportImportHandledTransfer : IDisposable
Constructors
ExportImportHandledTransfer(IContentTransferContext)
Initializes a new instance of the ExportImportHandledTransfer class.
Declaration
public ExportImportHandledTransfer(IContentTransferContext context)
Parameters
Type | Name | Description |
---|---|---|
IContentTransferContext | context | The context. |
ExportImportHandledTransfer(IContentTransferContext, ExportImportHandledTransfer.ExportImportMode, String)
Initializes a new instance of the ExportImportHandledTransfer class.
Declaration
public ExportImportHandledTransfer(IContentTransferContext context, ExportImportHandledTransfer.ExportImportMode mode, string packagefilePath)
Parameters
Type | Name | Description |
---|---|---|
IContentTransferContext | context | The context. |
ExportImportHandledTransfer.ExportImportMode | mode | The mode. |
System.String | packagefilePath | The packagefile path. |
ExportImportHandledTransfer(ZipPackage, IContentTransferContext)
Initializes a new instance of the ExportImportHandledTransfer class.
Declaration
public ExportImportHandledTransfer(ZipPackage package, IContentTransferContext context)
Parameters
Type | Name | Description |
---|---|---|
System.IO.Packaging.ZipPackage | package | The package. |
IContentTransferContext | context | The context. |
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Declaration
public void Dispose()
Dispose(Boolean)
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing |
Export()
Exports custom data. Create a exportimporthandlermap.xml which contains map information about file path (uri) and exportimport handler type. For each export/import handler creates a file which the handler writes/reads data to/from.
Declaration
public void Export()
Import()
Import custom data Call import on the transferhandlers if there is a handler on the context which match the typeinfo call import on it otherwise create an instance of the type
Declaration
public void Import()