Bagikan melalui


SearchResponse Class

Definition

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

public class SearchResponse : Microsoft.Azure.CognitiveServices.Search.EntitySearch.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, IList<ContractualRulesContractualRule>, String, QueryContext, Entities, Places)

Initializes a new instance of the SearchResponse class.

Properties

ContractualRules

Gets a list of rules that you must adhere to if you display the item.

(Inherited from Response)
Entities

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

Id

Gets a String identifier.

(Inherited from Identifiable)
Places

Gets a list of local entities such as restaurants or hotels that are relevant to the 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.

WebSearchUrl

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

(Inherited from Response)

Methods

Validate()

Validate the object.

Applies to