Share via


News Class

Definition

Defines a news answer.

public class News : Microsoft.Azure.CognitiveServices.Search.NewsSearch.Models.SearchResultsAnswer
type News = class
    inherit SearchResultsAnswer
Public Class News
Inherits SearchResultsAnswer
Inheritance

Constructors

News()

Initializes a new instance of the News class.

News(IList<NewsArticle>, String, String, IList<Query>, Nullable<Int64>, String)

Initializes a new instance of the News class.

Properties

FollowUpQueries (Inherited from Answer)
Id

Gets a String identifier.

(Inherited from Identifiable)
Location

Gets location of local news

TotalEstimatedMatches

Gets the estimated number of webpages that are relevant to the query. Use this number along with the count and offset query parameters to page the results.

(Inherited from SearchResultsAnswer)
Value

Gets or sets an array of NewsArticle objects that contain information about news articles that are relevant to the query. If there are no results to return for the request, the array is empty.

WebSearchUrl

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

(Inherited from Response)

Methods

Validate()

Validate the object.

Applies to