Query Class

Definition

Defines a search query.

public class Query
type Query = class
Public Class Query
Inheritance
Query

Constructors

Query()

Initializes a new instance of the Query class.

Query(String, String, String, String, ImageObject)

Initializes a new instance of the Query class.

Properties

DisplayText

Gets 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

SearchLink

Gets the URL that you use to get the results of the related search. Before using the URL, you must append query parameters as appropriate and include the Ocp-Apim-Subscription-Key header. Use this URL if you're displaying the results in your own user interface. Otherwise, use the webSearchUrl URL.

Text

Gets or sets the query string. Use this string as the query term in a new search request.

Thumbnail

Gets the URL to a thumbnail of a related image.

WebSearchUrl

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

Methods

Validate()

Validate the object.

Applies to