Condividi tramite


SearchResponse Constructors

Definition

Overloads

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.

SearchResponse()

Initializes a new instance of the SearchResponse class.

public SearchResponse ();
Public Sub New ()

Applies to

SearchResponse(String, IList<ContractualRulesContractualRule>, String, QueryContext, Entities, Places)

Initializes a new instance of the SearchResponse class.

public SearchResponse (string id = default, System.Collections.Generic.IList<Microsoft.Azure.CognitiveServices.Search.EntitySearch.Models.ContractualRulesContractualRule> contractualRules = default, string webSearchUrl = default, Microsoft.Azure.CognitiveServices.Search.EntitySearch.Models.QueryContext queryContext = default, Microsoft.Azure.CognitiveServices.Search.EntitySearch.Models.Entities entities = default, Microsoft.Azure.CognitiveServices.Search.EntitySearch.Models.Places places = default);
new Microsoft.Azure.CognitiveServices.Search.EntitySearch.Models.SearchResponse : string * System.Collections.Generic.IList<Microsoft.Azure.CognitiveServices.Search.EntitySearch.Models.ContractualRulesContractualRule> * string * Microsoft.Azure.CognitiveServices.Search.EntitySearch.Models.QueryContext * Microsoft.Azure.CognitiveServices.Search.EntitySearch.Models.Entities * Microsoft.Azure.CognitiveServices.Search.EntitySearch.Models.Places -> Microsoft.Azure.CognitiveServices.Search.EntitySearch.Models.SearchResponse
Public Sub New (Optional id As String = Nothing, Optional contractualRules As IList(Of ContractualRulesContractualRule) = Nothing, Optional webSearchUrl As String = Nothing, Optional queryContext As QueryContext = Nothing, Optional entities As Entities = Nothing, Optional places As Places = Nothing)

Parameters

id
String

A String identifier.

contractualRules
IList<ContractualRulesContractualRule>

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

webSearchUrl
String

The URL To Bing's search result for this item.

queryContext
QueryContext

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.

entities
Entities

A list of entities that are relevant to the search query.

places
Places

A list of local entities such as restaurants or hotels that are relevant to the query.

Applies to