NewsArticle 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
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. |
NewsArticle()
Initializes a new instance of the NewsArticle class.
public NewsArticle ();
Public Sub New ()
Applies to
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.
public NewsArticle (string id = default, string webSearchUrl = default, string name = default, string url = default, Microsoft.Azure.CognitiveServices.Search.NewsSearch.Models.ImageObject image = default, string description = default, string alternateName = default, string bingId = default, string thumbnailUrl = default, System.Collections.Generic.IList<Microsoft.Azure.CognitiveServices.Search.NewsSearch.Models.Thing> provider = default, string datePublished = default, Microsoft.Azure.CognitiveServices.Search.NewsSearch.Models.VideoObject video = default, int? wordCount = default, string category = default, bool? headline = default, System.Collections.Generic.IList<Microsoft.Azure.CognitiveServices.Search.NewsSearch.Models.NewsArticle> clusteredArticles = default);
new Microsoft.Azure.CognitiveServices.Search.NewsSearch.Models.NewsArticle : string * string * string * string * Microsoft.Azure.CognitiveServices.Search.NewsSearch.Models.ImageObject * string * string * string * string * System.Collections.Generic.IList<Microsoft.Azure.CognitiveServices.Search.NewsSearch.Models.Thing> * string * Microsoft.Azure.CognitiveServices.Search.NewsSearch.Models.VideoObject * Nullable<int> * string * Nullable<bool> * System.Collections.Generic.IList<Microsoft.Azure.CognitiveServices.Search.NewsSearch.Models.NewsArticle> -> Microsoft.Azure.CognitiveServices.Search.NewsSearch.Models.NewsArticle
Public Sub New (Optional id As String = Nothing, Optional webSearchUrl As String = Nothing, Optional name As String = Nothing, Optional url As String = Nothing, Optional image As ImageObject = Nothing, Optional description As String = Nothing, Optional alternateName As String = Nothing, Optional bingId As String = Nothing, Optional thumbnailUrl As String = Nothing, Optional provider As IList(Of Thing) = Nothing, Optional datePublished As String = Nothing, Optional video As VideoObject = Nothing, Optional wordCount As Nullable(Of Integer) = Nothing, Optional category As String = Nothing, Optional headline As Nullable(Of Boolean) = Nothing, Optional clusteredArticles As IList(Of NewsArticle) = Nothing)
Parameters
- id
- String
A String identifier.
- webSearchUrl
- String
The URL To Bing's search result for this item.
- name
- String
The name of the thing represented by this object.
- url
- String
The URL to get more information about the thing represented by this object.
- image
- ImageObject
An image of the item.
- description
- String
A short description of the item.
- alternateName
- String
An alias for the item
- bingId
- String
An ID that uniquely identifies this item.
- thumbnailUrl
- String
The URL to a thumbnail of the item.
- datePublished
- String
The date on which the CreativeWork was published.
- video
- VideoObject
A video of the item.
- category
- String
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.
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.
- clusteredArticles
- IList<NewsArticle>
A list of related news articles.
Applies to
Azure SDK for .NET