你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ImageObject 构造函数

定义

重载

ImageObject()

初始化 ImageObject 类的新实例。

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

初始化 ImageObject 类的新实例。

ImageObject()

初始化 ImageObject 类的新实例。

public ImageObject ();
Public Sub New ()

适用于

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

初始化 ImageObject 类的新实例。

public ImageObject (string id = default, string readLink = default, string webSearchUrl = default, string name = default, string url = default, Microsoft.Azure.CognitiveServices.Search.CustomImageSearch.Models.ImageObject image = default, string description = default, string alternateName = default, string bingId = default, string thumbnailUrl = default, System.Collections.Generic.IList<Microsoft.Azure.CognitiveServices.Search.CustomImageSearch.Models.Thing> provider = default, string text = default, string contentUrl = default, string hostPageUrl = default, string contentSize = default, string encodingFormat = default, string hostPageDisplayUrl = default, int? width = default, int? height = default, Microsoft.Azure.CognitiveServices.Search.CustomImageSearch.Models.ImageObject thumbnail = default, string imageInsightsToken = default, string imageId = default, string accentColor = default, string visualWords = default);
new Microsoft.Azure.CognitiveServices.Search.CustomImageSearch.Models.ImageObject : string * string * string * string * string * Microsoft.Azure.CognitiveServices.Search.CustomImageSearch.Models.ImageObject * string * string * string * string * System.Collections.Generic.IList<Microsoft.Azure.CognitiveServices.Search.CustomImageSearch.Models.Thing> * string * string * string * string * string * string * Nullable<int> * Nullable<int> * Microsoft.Azure.CognitiveServices.Search.CustomImageSearch.Models.ImageObject * string * string * string * string -> Microsoft.Azure.CognitiveServices.Search.CustomImageSearch.Models.ImageObject
Public Sub New (Optional id As String = Nothing, Optional readLink 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 text As String = Nothing, Optional contentUrl As String = Nothing, Optional hostPageUrl As String = Nothing, Optional contentSize As String = Nothing, Optional encodingFormat As String = Nothing, Optional hostPageDisplayUrl As String = Nothing, Optional width As Nullable(Of Integer) = Nothing, Optional height As Nullable(Of Integer) = Nothing, Optional thumbnail As ImageObject = Nothing, Optional imageInsightsToken As String = Nothing, Optional imageId As String = Nothing, Optional accentColor As String = Nothing, Optional visualWords As String = Nothing)

参数

id
String

字符串标识符。

readLink
String

返回此资源的 URL。

webSearchUrl
String

指向此项目的必应搜索结果的 URL。

name
String

此对象表示的事物的名称。

url
String

用于获取有关此对象所表示内容的详细信息的 URL。

image
ImageObject

项的图像。

description
String

项的简短说明。

alternateName
String

项的别名

bingId
String

唯一标识此项的 ID。

thumbnailUrl
String

项缩略图的 URL。

provider
IList<Thing>

创造性工作的来源。

text
String

此创意作品的文本内容

contentUrl
String

用于检索媒体对象的源 (文件) 的原始 URL (,例如图像) 的源 URL。

hostPageUrl
String

承载媒体对象的页面的 URL。

contentSize
String

媒体对象内容的大小 (使用格式“值单位”,例如“1024 B”) 。

encodingFormat
String

编码格式 (例如 mp3、mp4、jpeg 等) 。

hostPageDisplayUrl
String

显示承载媒体对象的页面的 URL。

width
Nullable<Int32>

媒体对象的宽度(以像素为单位)。

height
Nullable<Int32>

媒体对象的高度(以像素为单位)。

thumbnail
ImageObject

图像缩略图的 URL

imageInsightsToken
String

在后续调用图像搜索 API 以获取有关图像的其他信息的令牌。 有关使用此令牌的信息,请参阅 insightsToken 查询参数。

imageId
String

映像的唯一 ID

accentColor
String

一个三字节十六进制数,表示主宰图像的颜色。 在加载图像之前,使用颜色作为客户端中的临时背景。

visualWords
String

图像的视觉表示形式。 用于获取更多大小

适用于