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.VisualSearch.Models.ImageObject thumbnail = default);
new Microsoft.Azure.CognitiveServices.Search.VisualSearch.Models.Query : string * string * string * string * Microsoft.Azure.CognitiveServices.Search.VisualSearch.Models.ImageObject -> Microsoft.Azure.CognitiveServices.Search.VisualSearch.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
System.String

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

displayText
System.String

The display version of the query term.

webSearchUrl
System.String

The URL that takes the user to the Bing search results page for the query.

searchLink
System.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