| FileBasedTranslationMemoryLanguageDirectionSearchSegmentsMasked Method |
Performs a search for an array of segments, specifying a mask which specifies which segments should actually be
searched (only those for which the corresponding mask bit is
true are searched). If the mask is
null, the method
behaves identically to
SearchSegments(SearchSettings, Segment). Passing a mask only makes sense in document search contexts (
IsDocumentSearch
set to
true).
Namespace: Sdl.LanguagePlatform.TranslationMemoryApiAssembly: Sdl.LanguagePlatform.TranslationMemoryApi (in Sdl.LanguagePlatform.TranslationMemoryApi.dll) Version: 1.6.0.0 (1.14.3880.0)
Syntaxpublic SearchResults[] SearchSegmentsMasked(
SearchSettings settings,
Segment[] segments,
bool[] mask
)
Public Function SearchSegmentsMasked (
settings As SearchSettings,
segments As Segment(),
mask As Boolean()
) As SearchResults()
public:
virtual array<SearchResults^>^ SearchSegmentsMasked(
SearchSettings^ settings,
array<Segment^>^ segments,
array<bool>^ mask
) sealed
abstract SearchSegmentsMasked :
settings : SearchSettings *
segments : Segment[] *
mask : bool[] -> SearchResults[]
override SearchSegmentsMasked :
settings : SearchSettings *
segments : Segment[] *
mask : bool[] -> SearchResults[] Parameters
- settings
- Type: Sdl.LanguagePlatform.TranslationMemorySearchSettings
The settings that define the search parameters. - segments
- Type: Sdl.LanguagePlatform.CoreSegment
The array containing the segments to search for. - mask
- Type: SystemBoolean
The array containing the segments to search for.
Return Value
Type:
SearchResults
An array of
SearchResults objects, which mirrors the segments array. It has the exact same size and contains the
search results for each segment with the same index within the segments array.
Implements
ITranslationProviderLanguageDirectionSearchSegmentsMasked(SearchSettings, Segment, Boolean)
See Also
Comments