Delen via


SearchResponse Class

Definition

Defines the top-level object that the response includes when the request succeeds.

public class SearchResponse : Microsoft.Azure.CognitiveServices.Search.WebSearch.Models.Response
type SearchResponse = class
    inherit Response
Public Class SearchResponse
Inherits Response
Inheritance

Constructors

SearchResponse()

Initializes a new instance of the SearchResponse class.

SearchResponse(String, String, QueryContext, WebWebAnswer, Images, News, RelatedSearchesRelatedSearchAnswer, SpellSuggestions, TimeZone, Videos, Computation, RankingRankingResponse)

Initializes a new instance of the SearchResponse class.

Properties

Computation

Gets the answer to a math expression or units conversion expression.

Id

Gets a String identifier.

(Inherited from Identifiable)
Images

Gets a list of images that are relevant to the search query.

News

Gets a list of news articles that are relevant to the search query.

QueryContext

Gets an object that contains the query string that Bing used for the request. This object contains the query string as entered by the user. It may also contain an altered query string that Bing used for the query if the query string contained a spelling mistake.

RankingResponse

Gets the order that Bing suggests that you display the search results in.

RelatedSearches

Gets a list of related queries made by others.

SpellSuggestions

Gets the query string that likely represents the user's intent.

TimeZone

Gets the date and time of one or more geographic locations.

Videos

Gets a list of videos that are relevant to the search query.

WebPages

Gets a list of webpages that are relevant to the search query.

WebSearchUrl

Gets the URL To Bing's search result for this item.

(Inherited from Response)

Methods

Validate()

Validate the object.

Applies to