Click or drag to resize
ISubsegmentTranslationMemoryLanguageDirectionSearchTranslationUnitsMasked Method
Similar to SearchTranslationUnits(SearchSettings, SubsegmentSearchSettings, SubsegmentSearchCondition, TranslationUnit), but allows passing a mask which specifies which TUs are actually searched. This is useful in document search contexts where some TUs are passed which should be used to establish a (text) context, but which should not be processed.

Namespace: Sdl.LanguagePlatform.TranslationMemoryApi
Assembly: Sdl.LanguagePlatform.TranslationMemoryApi (in Sdl.LanguagePlatform.TranslationMemoryApi.dll) Version: 1.6.0.0 (1.14.4157.0)
Syntax
SegmentAndSubsegmentSearchResults[] SearchTranslationUnitsMasked(
	SearchSettings settings,
	SubsegmentSearchSettings subsegmentSettings,
	SubsegmentSearchCondition condition,
	TranslationUnit[] translationUnits,
	bool[] mask
)

Parameters

settings
Type: SearchSettings
The settings that define the segment-level search parameters.
subsegmentSettings
Type: SubsegmentSearchSettings
The settings that define the subsegment search parameters, or null if a subsegment search should not be performed.
condition
Type: SubsegmentSearchCondition
If subsegmentSettings is not null, specifies the conditions under which a subsegment search will be performed.
translationUnits
Type: TranslationUnit
The array containing the translation units to search for.
mask
Type: SystemBoolean
A bool array which specifies which TUs are actually searched (mask[i] = true). If null, the method behaves identically to SearchTranslationUnits(SearchSettings, SubsegmentSearchSettings, SubsegmentSearchCondition, TranslationUnit).

Return Value

Type: SegmentAndSubsegmentSearchResults
An array of objects, which mirrors the translation unit array. It has the exact same size and contains the search results for each translation unit with the same index within the translation unit array.
See Also
Community
Edit

Be the first to Edit the community content of this topic.
Comments