| title | MatchResult Constructors | |||
|---|---|---|---|---|
| description | Initializes a new instance of the MatchResult class with specified parameters. | |||
| ms.date | 2/26/2025 | |||
| ms.topic | reference | |||
| no-loc |
|
MatchResult(Boolean, SearchPrecisionScore) Constructor
Namespace: Microsoft.CommandPalette.Extensions.Toolkit
Initializes a new instance of the MatchResult class with its Success property set to success and SearchPrecision set to searchPrecision.
public MatchResult(bool success, SearchPrecisionScore searchPrecision)
{
Success = success;
SearchPrecision = searchPrecision;
}success Boolean
Indicates whether the match was successful.
searchPrecision SearchPrecisionScore
The search precision score for the match. This score is used to determine how closely the match aligns with the search criteria.
MatchResult(Boolean, SearchPrecisionScore, List<Integer>, Integer) Constructor
Namespace: Microsoft.CommandPalette.Extensions.Toolkit
Initializes a new instance of the MatchResult class with its Success property set to success, SearchPrecision set to searchPrecision, MatchData set to matchData, and RawScore set to rawScore.
public MatchResult(bool success, SearchPrecisionScore searchPrecision, List<int> matchData, int rawScore)
{
Success = success;
SearchPrecision = searchPrecision;
MatchData = matchData;
RawScore = rawScore;
}success Boolean
Indicates whether the match was successful.
searchPrecision SearchPrecisionScore
The search precision score for the match. This score is used to determine how closely the match aligns with the search criteria.
matchData List<Integer>
The list of match data. This data can be used to provide additional context or information about the match.
rawScore Integer
The raw score for the match. This score is used to quantify the quality of the match based on the search criteria.