| ITranslationProviderLanguageDirectionAddOrUpdateTranslationUnits Method |
Adds an array of translation units to the database. If hash codes of the previous translations are provided,
a found translation will be overwritten. If none is found, or the hash is 0 or the collection is
null,
the operation behaves identical to
AddTranslationUnits(TranslationUnit, ImportSettings).
If the provider doesn't support adding/updating, the
implementation should return a reasonable ImportResult but should not throw an exception.
Namespace: Sdl.LanguagePlatform.TranslationMemoryApiAssembly: Sdl.LanguagePlatform.TranslationMemoryApi (in Sdl.LanguagePlatform.TranslationMemoryApi.dll) Version: 1.6.0.0 (1.14.4157.0)
SyntaxImportResult[] AddOrUpdateTranslationUnits(
TranslationUnit[] translationUnits,
int[] previousTranslationHashes,
ImportSettings settings
)
Function AddOrUpdateTranslationUnits (
translationUnits As TranslationUnit(),
previousTranslationHashes As Integer(),
settings As ImportSettings
) As ImportResult()
array<ImportResult^>^ AddOrUpdateTranslationUnits(
array<TranslationUnit^>^ translationUnits,
array<int>^ previousTranslationHashes,
ImportSettings^ settings
)
abstract AddOrUpdateTranslationUnits :
translationUnits : TranslationUnit[] *
previousTranslationHashes : int[] *
settings : ImportSettings -> ImportResult[]
Parameters
- translationUnits
- Type: TranslationUnit
An arrays of translation units to be added. - previousTranslationHashes
- Type: SystemInt32
If provided, a corresponding array of a the hash code of a previous translation. - settings
- Type: ImportSettings
The settings used for this operation.
Return Value
Type:
ImportResultAn array of
ImportResult objects, which mirrors the translation unit array. It has the exact same size and contains the
status of each add operation for each particular translation unit with the same index within the array.
See Also
Comments