| SearchResultFieldValueComparerCompare Method |
Compares two search results' specified field values and returns an indication of their relative values.
Currently only the following field names are allowed: sco (score), usc (usage count), usd (last used date),
crd (creation date), chd (change date).
If a field name is used which is not listed above, Compare will return zero.
Namespace: Sdl.LanguagePlatform.TranslationMemoryAssembly: Sdl.LanguagePlatform.TranslationMemory (in Sdl.LanguagePlatform.TranslationMemory.dll) Version: 1.6.0.0 (1.7.3662.0)
Syntaxpublic int Compare(
SearchResult a,
SearchResult b,
string fieldName
)
Public Function Compare (
a As SearchResult,
b As SearchResult,
fieldName As String
) As Integer
public:
virtual int Compare(
SearchResult^ a,
SearchResult^ b,
String^ fieldName
) sealed
abstract Compare :
a : SearchResult *
b : SearchResult *
fieldName : string -> int
override Compare :
a : SearchResult *
b : SearchResult *
fieldName : string -> int Parameters
- a
- Type: Sdl.LanguagePlatform.TranslationMemorySearchResult
The first of the two items to compare. - b
- Type: Sdl.LanguagePlatform.TranslationMemorySearchResult
The second of the two items to compare. - fieldName
- Type: SystemString
The field used for comparison.
Return Value
Type:
Int32Less than zero if a is less than b, zero if a equals b or a value greater than zero if a is greater than b.
Implements
IFieldValueComparerTCompare(T, T, String)
See Also
Comments