Class Tools
Inheritance
System.Object
Tools
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
public class Tools
Constructors
Tools()
Declaration
public Tools()
Methods
CheckTmsEqual(Container, PersistentObjectToken, Container, PersistentObjectToken)
Declaration
public static void CheckTmsEqual(Container container1, PersistentObjectToken tmId1, Container container2, PersistentObjectToken tmId2)
Parameters
Type | Name | Description |
---|---|---|
Sdl.LanguagePlatform.TranslationMemoryImpl.Container | container1 | |
PersistentObjectToken | tmId1 | |
Sdl.LanguagePlatform.TranslationMemoryImpl.Container | container2 | |
PersistentObjectToken | tmId2 |
CopyTm(FileContainer, PersistentObjectToken, DatabaseContainer, PersistentObjectToken, Int32, Int32)
Declaration
public static void CopyTm(FileContainer sourceContainer, PersistentObjectToken sourceTmId, DatabaseContainer destContainer, PersistentObjectToken destTmId, int timeoutSeconds = 600, int batchSize = 0)
Parameters
Type | Name | Description |
---|---|---|
Sdl.LanguagePlatform.TranslationMemoryImpl.FileContainer | sourceContainer | |
PersistentObjectToken | sourceTmId | |
Sdl.LanguagePlatform.TranslationMemoryImpl.DatabaseContainer | destContainer | |
PersistentObjectToken | destTmId | |
System.Int32 | timeoutSeconds | |
System.Int32 | batchSize |
ExclusiveImport(String, String, ImportSettings, Action<Object, BatchImportedEventArgs>)
Declaration
public static ImportStatistics ExclusiveImport(string tmFile, string inputFile, ImportSettings settings, Action<object, BatchImportedEventArgs> batchEvent = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | tmFile | |
System.String | inputFile | |
ImportSettings | settings | |
System.Action<System.Object, BatchImportedEventArgs> | batchEvent |
Returns
Type | Description |
---|---|
ImportStatistics |
FileBasedTmFromServerBasedTm(DatabaseContainer, PersistentObjectToken, String)
Declaration
public static PersistentObjectToken FileBasedTmFromServerBasedTm(DatabaseContainer container, PersistentObjectToken tmId, string tmFile)
Parameters
Type | Name | Description |
---|---|---|
Sdl.LanguagePlatform.TranslationMemoryImpl.DatabaseContainer | container | |
PersistentObjectToken | tmId | |
System.String | tmFile |
Returns
Type | Description |
---|---|
PersistentObjectToken |