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
Namespace: EPiServer.Core.Transfer.Internal
Assembly: EPiServer.dll
Version: 12.0.3Syntax
public class ExportImportHandledTransfer : Object, IDisposable
Constructors
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 | |
IContentTransferContext | 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()