| ITranslationProviderLanguageDirectionAddOrUpdateTranslationUnitsMasked Method |
Adds an array of translation units to the database, but will only add those
for which the corresponding mask field is true. If the previous translation hashes are provided,
existing translations will be updated if the target segment hash changed.
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[] AddOrUpdateTranslationUnitsMasked(
TranslationUnit[] translationUnits,
int[] previousTranslationHashes,
ImportSettings settings,
bool[] mask
)
Function AddOrUpdateTranslationUnitsMasked (
translationUnits As TranslationUnit(),
previousTranslationHashes As Integer(),
settings As ImportSettings,
mask As Boolean()
) As ImportResult()
array<ImportResult^>^ AddOrUpdateTranslationUnitsMasked(
array<TranslationUnit^>^ translationUnits,
array<int>^ previousTranslationHashes,
ImportSettings^ settings,
array<bool>^ mask
)
abstract AddOrUpdateTranslationUnitsMasked :
translationUnits : TranslationUnit[] *
previousTranslationHashes : int[] *
settings : ImportSettings *
mask : bool[] -> ImportResult[]
Parameters
- translationUnits
- Type: TranslationUnit
An arrays of translation units to be added. - previousTranslationHashes
- Type: SystemInt32
Corresponding hash codes of a previous translation (0 if unknown). The parameter may be null. - settings
- Type: ImportSettings
The settings used for this operation. - mask
- Type: SystemBoolean
A boolean array with the same cardinality as the TU array, specifying which TUs to add.
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