Dela via


Query Constructors

Definition

Overloads

Query()

Initializes a new instance of the Query class.

Query(String, String, String, String)

Initializes a new instance of the Query class.

Query()

Initializes a new instance of the Query class.

public Query ();
Public Sub New ()

Applies to

Query(String, String, String, String)

Initializes a new instance of the Query class.

public Query (string text, string displayText = default, string webSearchUrl = default, string searchLink = default);
new Microsoft.Azure.CognitiveServices.Search.CustomSearch.Models.Query : string * string * string * string -> Microsoft.Azure.CognitiveServices.Search.CustomSearch.Models.Query
Public Sub New (text As String, Optional displayText As String = Nothing, Optional webSearchUrl As String = Nothing, Optional searchLink As String = Nothing)

Parameters

text
String

The query string. Use this string as the query term in a new search request.

displayText
String

The display version of the query term. This version of the query term may contain special characters that highlight the search term found in the query string. The string contains the highlighting characters only if the query enabled hit highlighting

webSearchUrl
String

The URL that takes the user to the Bing search results page for the query.Only related search results include this field.

searchLink
String

Applies to