| FileBasedTranslationMemory Constructor (String, String, CultureInfo, CultureInfo, FuzzyIndexes, BuiltinRecognizers, TokenizerFlags, WordCountFlags) |
Creates a new file-based translation memory.
Namespace: Sdl.LanguagePlatform.TranslationMemoryApiAssembly: Sdl.LanguagePlatform.TranslationMemoryApi (in Sdl.LanguagePlatform.TranslationMemoryApi.dll) Version: 1.6.0.0 (1.14.4157.0)
Syntaxpublic FileBasedTranslationMemory(
string tmFilePath,
string description,
CultureInfo sourceLanguage,
CultureInfo targetLanguage,
FuzzyIndexes indexes,
BuiltinRecognizers recognizers,
TokenizerFlags tokenizerFlags,
WordCountFlags wordCountFlags
)
Public Sub New (
tmFilePath As String,
description As String,
sourceLanguage As CultureInfo,
targetLanguage As CultureInfo,
indexes As FuzzyIndexes,
recognizers As BuiltinRecognizers,
tokenizerFlags As TokenizerFlags,
wordCountFlags As WordCountFlags
)
public:
FileBasedTranslationMemory(
String^ tmFilePath,
String^ description,
CultureInfo^ sourceLanguage,
CultureInfo^ targetLanguage,
FuzzyIndexes indexes,
BuiltinRecognizers recognizers,
TokenizerFlags tokenizerFlags,
WordCountFlags wordCountFlags
)
new :
tmFilePath : string *
description : string *
sourceLanguage : CultureInfo *
targetLanguage : CultureInfo *
indexes : FuzzyIndexes *
recognizers : BuiltinRecognizers *
tokenizerFlags : TokenizerFlags *
wordCountFlags : WordCountFlags -> FileBasedTranslationMemoryParameters
- tmFilePath
- Type: SystemString
The absolute path where the translation memory file should be created. - description
- Type: SystemString
A description for the translation memory. - sourceLanguage
- Type: System.GlobalizationCultureInfo
A region-qualified culture, representing the source language. - targetLanguage
- Type: System.GlobalizationCultureInfo
A region-qualified culture, representing the target language. - indexes
- Type: FuzzyIndexes
The set of fuzzy indexes that should be created in this translation memory. - recognizers
- Type: BuiltinRecognizers
Recognizer settings. - tokenizerFlags
- Type: TokenizerFlags
Flags affecting tokenizer behaviour for this TM - wordCountFlags
- Type: WordCountFlags
Flags affecting word count behaviour for this TM
Exceptions| Exception | Condition |
|---|
| ArgumentNullException | Thrown when tmFilePath, description, sourceLanguage or targetLanguage is null or empty. |
| ArgumentException | Thrown when sourceLanguage or targetLanguage are not region-qualified cultures. |
See Also
Comments