Compartir a través de


ListManagementImage.AddImageFileInputWithHttpMessagesAsync Método

Definición

Agregue una imagen a la lista con el identificador de lista igual al identificador de lista pasado.

public System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<Microsoft.Azure.CognitiveServices.ContentModerator.Models.Image>> AddImageFileInputWithHttpMessagesAsync(string listId, System.IO.Stream imageStream, int? tag = default, string label = default, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member AddImageFileInputWithHttpMessagesAsync : string * System.IO.Stream * Nullable<int> * string * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<Microsoft.Azure.CognitiveServices.ContentModerator.Models.Image>>
override this.AddImageFileInputWithHttpMessagesAsync : string * System.IO.Stream * Nullable<int> * string * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<Microsoft.Azure.CognitiveServices.ContentModerator.Models.Image>>
Public Function AddImageFileInputWithHttpMessagesAsync (listId As String, imageStream As Stream, Optional tag As Nullable(Of Integer) = Nothing, Optional label As String = Nothing, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of HttpOperationResponse(Of Image))

Parámetros

listId
String

Id. de lista de la lista de imágenes.

imageStream
Stream

El archivo de imagen.

tag
Nullable<Int32>

Etiqueta para la imagen.

label
String

Etiqueta de imagen.

customHeaders
Dictionary<String,List<String>>

Encabezados que se agregarán a la solicitud.

cancellationToken
CancellationToken

Token de cancelación.

Devoluciones

Implementaciones

Excepciones

Se produce cuando la operación devolvió un código de estado no válido

Se produce cuando no se puede deserializar la respuesta

Se produce cuando un parámetro obligatorio es NULL

Se produce cuando un parámetro obligatorio es NULL

Se aplica a