Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Definition
Namespace: Microsoft.CommandPalette.Extensions.Toolkit
The MatchResult class is used to represent the result of a match operation in the Command Palette Extensions Toolkit. It contains information about whether the match was successful, the score of the match, and any additional data related to the match.
Constructors
| Constructor | Description |
|---|---|
| MatchResult(Boolean, SearchPrecisionScore) | Initializes a new instance of the MatchResult class with a success flag and a search precision score. |
| MatchResult(Boolean, SearchPrecisionScore, List<Integer>, Integer) | Initializes a new instance of the MatchResult class with a success flag, a search precision score, match data, and a raw score. |
Properties
| Property | Type | Description |
|---|---|---|
| MatchData | List<Integer> | A list of integers representing the match data. |
| RawScore | Integer | The raw score of the match. |
| Score | Integer | The score of the match. |
| SearchPrecision | SearchPrecisionScore | The precision score of the match. |
| Success | Boolean | A boolean value indicating whether the match was successful. |
Methods
| Method | Description |
|---|---|
| IsSearchPrecisionScoreMet() | Checks if the search precision score is met. |
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Windows developer