SearchResponse Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
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. |
SearchResponse()
Initializes a new instance of the SearchResponse class.
public SearchResponse ();
Public Sub New ()
Applies to
SearchResponse(String, String, QueryContext, WebWebAnswer, Images, News, RelatedSearchesRelatedSearchAnswer, SpellSuggestions, TimeZone, Videos, Computation, RankingRankingResponse)
Initializes a new instance of the SearchResponse class.
public SearchResponse (string id = default, string webSearchUrl = default, Microsoft.Azure.CognitiveServices.Search.WebSearch.Models.QueryContext queryContext = default, Microsoft.Azure.CognitiveServices.Search.WebSearch.Models.WebWebAnswer webPages = default, Microsoft.Azure.CognitiveServices.Search.WebSearch.Models.Images images = default, Microsoft.Azure.CognitiveServices.Search.WebSearch.Models.News news = default, Microsoft.Azure.CognitiveServices.Search.WebSearch.Models.RelatedSearchesRelatedSearchAnswer relatedSearches = default, Microsoft.Azure.CognitiveServices.Search.WebSearch.Models.SpellSuggestions spellSuggestions = default, Microsoft.Azure.CognitiveServices.Search.WebSearch.Models.TimeZone timeZone = default, Microsoft.Azure.CognitiveServices.Search.WebSearch.Models.Videos videos = default, Microsoft.Azure.CognitiveServices.Search.WebSearch.Models.Computation computation = default, Microsoft.Azure.CognitiveServices.Search.WebSearch.Models.RankingRankingResponse rankingResponse = default);
new Microsoft.Azure.CognitiveServices.Search.WebSearch.Models.SearchResponse : string * string * Microsoft.Azure.CognitiveServices.Search.WebSearch.Models.QueryContext * Microsoft.Azure.CognitiveServices.Search.WebSearch.Models.WebWebAnswer * Microsoft.Azure.CognitiveServices.Search.WebSearch.Models.Images * Microsoft.Azure.CognitiveServices.Search.WebSearch.Models.News * Microsoft.Azure.CognitiveServices.Search.WebSearch.Models.RelatedSearchesRelatedSearchAnswer * Microsoft.Azure.CognitiveServices.Search.WebSearch.Models.SpellSuggestions * Microsoft.Azure.CognitiveServices.Search.WebSearch.Models.TimeZone * Microsoft.Azure.CognitiveServices.Search.WebSearch.Models.Videos * Microsoft.Azure.CognitiveServices.Search.WebSearch.Models.Computation * Microsoft.Azure.CognitiveServices.Search.WebSearch.Models.RankingRankingResponse -> Microsoft.Azure.CognitiveServices.Search.WebSearch.Models.SearchResponse
Public Sub New (Optional id As String = Nothing, Optional webSearchUrl As String = Nothing, Optional queryContext As QueryContext = Nothing, Optional webPages As WebWebAnswer = Nothing, Optional images As Images = Nothing, Optional news As News = Nothing, Optional relatedSearches As RelatedSearchesRelatedSearchAnswer = Nothing, Optional spellSuggestions As SpellSuggestions = Nothing, Optional timeZone As TimeZone = Nothing, Optional videos As Videos = Nothing, Optional computation As Computation = Nothing, Optional rankingResponse As RankingRankingResponse = Nothing)
Parameters
- id
- String
A String identifier.
- 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.
- webPages
- WebWebAnswer
A list of webpages that are relevant to the search query.
- images
- Images
A list of images that are relevant to the search query.
- news
- News
A list of news articles that are relevant to the search query.
- relatedSearches
- RelatedSearchesRelatedSearchAnswer
A list of related queries made by others.
- spellSuggestions
- SpellSuggestions
The query string that likely represents the user's intent.
- timeZone
- TimeZone
The date and time of one or more geographic locations.
- videos
- Videos
A list of videos that are relevant to the search query.
- computation
- Computation
The answer to a math expression or units conversion expression.
- rankingResponse
- RankingRankingResponse
The order that Bing suggests that you display the search results in.
Applies to
Azure SDK for .NET