Query Constructors

Definition

Overloads

Query()

Initializes a new instance of the Query class.

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

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, ImageObject)

Initializes a new instance of the Query class.

public Query (string text, string displayText = default, string webSearchUrl = default, string searchLink = default, Microsoft.Azure.CognitiveServices.Search.CustomImageSearch.Models.ImageObject thumbnail = default);
new Microsoft.Azure.CognitiveServices.Search.CustomImageSearch.Models.Query : string * string * string * string * Microsoft.Azure.CognitiveServices.Search.CustomImageSearch.Models.ImageObject -> Microsoft.Azure.CognitiveServices.Search.CustomImageSearch.Models.Query
Public Sub New (text As String, Optional displayText As String = Nothing, Optional webSearchUrl As String = Nothing, Optional searchLink As String = Nothing, Optional thumbnail As ImageObject = 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

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.

thumbnail
ImageObject

The URL to a thumbnail of a related image.

Applies to