Interface IFileTransfer
The base interface for handling files with the transfer functionality.
Namespace: EPiServer.Core.Transfer
Assembly: EPiServer.dll
Version: 12.0.3Syntax
public interface IFileTransfer
Properties
Files
Returns a list of all files.
Declaration
IList<IFileTransferObject> Files { get; }
Property Value
Type | Description |
---|---|
System. |
The files to be transferred. |
TransferContext
Gets or sets the transfer context.
Declaration
IContentTransferContext TransferContext { get; set; }
Property Value
Type | Description |
---|---|
IContent |
The transfer context. |
Methods
Export()
Exports all files to an IFileTransferObject.
Declaration
IFileTransferObject[] Export()
Returns
Type | Description |
---|---|
IFile |
A file transfer object |
Import(IFileTransferObject)
Imports a file transfer object.
Declaration
IFileTransferObject Import(IFileTransferObject metaData)
Parameters
Type | Name | Description |
---|---|---|
IFile |
metaData | The file transfer object to import. |
Returns
Type | Description |
---|---|
IFile |
A file transfer object, if null is returned no data is imported. |
TryAddBlob(Blob)
Adds a Blob instance to the package.
Declaration
bool TryAddBlob(Blob blob)
Parameters
Type | Name | Description |
---|---|---|
Blob | blob | The BLOB. |
Returns
Type | Description |
---|---|
System. |
true if the blob was added else false. |
TryAddFile(String, out String)
Tries to add the file to the package.
Declaration
bool TryAddFile(string filePath, out string addedFilePath)
Parameters
Type | Name | Description |
---|---|---|
System. |
filePath | The file path. |
System. |
addedFilePath | The added file path. |
Returns
Type | Description |
---|---|
System. |
true if the file was added else false. |