NewsArticle Constructors

Definition

Overloads

NewsArticle()

Initializes a new instance of the NewsArticle class.

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

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, IList<Thing>, String, Nullable<Int32>)

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.WebSearch.Models.ImageObject image = default, string description = default, string bingId = default, string thumbnailUrl = default, System.Collections.Generic.IList<Microsoft.Azure.CognitiveServices.Search.WebSearch.Models.Thing> provider = default, string text = default, int? wordCount = default);
new Microsoft.Azure.CognitiveServices.Search.WebSearch.Models.NewsArticle : string * string * string * string * Microsoft.Azure.CognitiveServices.Search.WebSearch.Models.ImageObject * string * string * string * System.Collections.Generic.IList<Microsoft.Azure.CognitiveServices.Search.WebSearch.Models.Thing> * string * Nullable<int> -> Microsoft.Azure.CognitiveServices.Search.WebSearch.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 bingId As String = Nothing, Optional thumbnailUrl As String = Nothing, Optional provider As IList(Of Thing) = Nothing, Optional text As String = Nothing, Optional wordCount As Nullable(Of Integer) = 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
description
String

A short description of the item.

bingId
String

An ID that uniquely identifies this item.

thumbnailUrl
String

The URL to a thumbnail of the item.

provider
IList<Thing>

The source of the creative work.

text
String
wordCount
Nullable<Int32>

The number of words in the text of the Article.

Applies to