Class Importer
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: Sdl.Core.TM.ImportExport
Assembly: Sdl.Core.TM.ImportExport.dll
Syntax
[Obsolete("Use ImporterAsync directly.")]
public class Importer : ImporterAsync
Constructors
Importer()
Declaration
[Obsolete("Use version providing ICultureMetadataManager")]
public Importer()
Importer(IImportDestination)
Declaration
[Obsolete("Use version providing ICultureMetadataManager")]
public Importer(IImportDestination importDestination)
Parameters
Type | Name | Description |
---|---|---|
IImportDestination | importDestination |
Importer(IImportDestinationAsync, ICultureMetadataManager)
Declaration
public Importer(IImportDestinationAsync importDestinationAsync, ICultureMetadataManager cultureMetadataManager)
Parameters
Type | Name | Description |
---|---|---|
IImportDestinationAsync | importDestinationAsync | |
Sdl.Core.Globalization.CultureMetadataManager.ICultureMetadataManager | cultureMetadataManager |
Methods
Import(String)
Declaration
[Obsolete("Use ImportAsync")]
public bool Import(string fileName)
Parameters
Type | Name | Description |
---|---|---|
System.String | fileName |
Returns
Type | Description |
---|---|
System.Boolean |
Import(String, IImportDestination)
Starts the import from the specified file.
Declaration
[Obsolete("Use ImportAsync")]
public bool Import(string fileName, IImportDestination importDestination)
Parameters
Type | Name | Description |
---|---|---|
System.String | fileName | The file name. |
IImportDestination | importDestination |
Returns
Type | Description |
---|---|
System.Boolean | The import results. |
OnBatchImportedAsync(ImportStatistics, ImportResults)
Declaration
protected override Task<bool> OnBatchImportedAsync(ImportStatistics overallResults, ImportResults batchResults)
Parameters
Type | Name | Description |
---|---|---|
ImportStatistics | overallResults | |
ImportResults | batchResults |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Boolean> |
Overrides
Events
BatchImported
Declaration
[Obsolete("Use ImporterAsync with constructor parameter batchImportedAsync.")]
public event EventHandler<BatchImportedEventArgs> BatchImported
Event Type
Type | Description |
---|---|
System.EventHandler<BatchImportedEventArgs> |