Freigeben über


ICustomVisionTrainingClient.CreateTagWithHttpMessagesAsync Methode

Definition

Erstellt ein Tag für das Projekt.

public System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<Microsoft.Azure.CognitiveServices.Vision.CustomVision.Training.Models.Tag>> CreateTagWithHttpMessagesAsync(Guid projectId, string name, string description = default, string type = default, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateTagWithHttpMessagesAsync : Guid * string * string * string * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<Microsoft.Azure.CognitiveServices.Vision.CustomVision.Training.Models.Tag>>
Public Function CreateTagWithHttpMessagesAsync (projectId As Guid, name As String, Optional description As String = Nothing, Optional type As String = Nothing, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of HttpOperationResponse(Of Tag))

Parameter

projectId
Guid

Die Projekt-ID.

name
String

Der Tagname.

description
String

Optionale Beschreibung für das Tag.

type
String

Optionaler Typ für das Tag. Mögliche Werte: "Normal", "Negativ"

customHeaders
Dictionary<String,List<String>>

Die Header, die der Anforderung hinzugefügt werden.

cancellationToken
CancellationToken

Das Abbruchtoken.

Gibt zurück

Gilt für: