Freigeben über


MediaObject Konstruktoren

Definition

Überlädt

MediaObject()

Initialisiert eine neue instance der MediaObject-Klasse.

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

Initialisiert eine neue instance der MediaObject-Klasse.

MediaObject()

Initialisiert eine neue instance der MediaObject-Klasse.

public MediaObject ();
Public Sub New ()

Gilt für:

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

Initialisiert eine neue instance der MediaObject-Klasse.

public MediaObject (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, string contentUrl = default, int? width = default, int? height = default);
new Microsoft.Azure.CognitiveServices.Search.NewsSearch.Models.MediaObject : 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 * string * Nullable<int> * Nullable<int> -> Microsoft.Azure.CognitiveServices.Search.NewsSearch.Models.MediaObject
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 contentUrl As String = Nothing, Optional width As Nullable(Of Integer) = Nothing, Optional height As Nullable(Of Integer) = Nothing)

Parameter

id
String

Ein Zeichenfolgenbezeichner.

webSearchUrl
String

Die URL zum Bing-Suchergebnis für dieses Element.

name
String

Der Name des durch dieses Objekt dargestellten Objekts.

url
String

Die URL zum Abrufen weiterer Informationen zu dem durch dieses Objekt dargestellten Objekt.

image
ImageObject

Ein Bild des Elements.

description
String

Eine kurze Beschreibung des Elements.

alternateName
String

Ein Alias für das Element

bingId
String

Eine ID, die dieses Element eindeutig identifiziert.

thumbnailUrl
String

Die URL zu einer Miniaturansicht des Elements.

provider
IList<Thing>

Die Quelle der kreativen Arbeit.

datePublished
String

Das Datum, an dem das CreativeWork veröffentlicht wurde.

video
VideoObject

Ein Video des Elements.

contentUrl
String

Ursprüngliche URL zum Abrufen der Quelle (Datei) für das Medienobjekt (z. B. die Quell-URL für das Bild).

width
Nullable<Int32>

Die Breite des Quellmedienobjekts in Pixel.

height
Nullable<Int32>

Die Höhe des Quellmedienobjekts in Pixel.

Gilt für: