Skip to content

Latest commit

 

History

History
71 lines (46 loc) · 2.44 KB

File metadata and controls

71 lines (46 loc) · 2.44 KB
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
PowerToys
Windows
Insider

MatchResult Constructors

MatchResult(Boolean, SearchPrecisionScore) Constructor

Definition

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;
    }

Parameters

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

Definition

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;
    }

Parameters

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.