Sdílet prostřednictvím


NewsArticle Class

Definition

Defines a news article.

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

Constructors

NewsArticle()

Initializes a new instance of the NewsArticle class.

NewsArticle(String, String, String, String, ImageObject, String, String, String, String, IList<Thing>, String, VideoObject, Nullable<Int32>, String, Nullable<Boolean>, IList<NewsArticle>)

Initializes a new instance of the NewsArticle class.

Properties

AlternateName

Gets an alias for the item

(Inherited from Thing)
BingId

Gets an ID that uniquely identifies this item.

(Inherited from Thing)
Category

Gets the news category that the article belongs to. For example, Sports. If the news category cannot be determined, the article does not include this field.

ClusteredArticles

Gets a list of related news articles.

DatePublished

Gets the date on which the CreativeWork was published.

(Inherited from CreativeWork)
Description

Gets a short description of the item.

(Inherited from Thing)
Headline

Gets a Boolean value that indicates whether the news article is a headline. If true, the article is a headline. The article includes this field only for news categories requests that do not specify the category query parameter.

Id

Gets a String identifier.

(Inherited from Identifiable)
Image

Gets an image of the item.

(Inherited from Thing)
Name

Gets the name of the thing represented by this object.

(Inherited from Thing)
Provider

Gets the source of the creative work.

(Inherited from CreativeWork)
ThumbnailUrl

Gets the URL to a thumbnail of the item.

(Inherited from CreativeWork)
Url

Gets the URL to get more information about the thing represented by this object.

(Inherited from Thing)
Video

Gets a video of the item.

(Inherited from CreativeWork)
WebSearchUrl

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

(Inherited from Response)
WordCount

Gets the number of words in the text of the Article.

(Inherited from Article)

Applies to