ICustomVisionTrainingClient.TrainProjectWithHttpMessagesAsync Method

Definition

Overloads

TrainProjectWithHttpMessagesAsync(Guid, Dictionary<String,List<String>>, CancellationToken)

Queues project for training.

TrainProjectWithHttpMessagesAsync(Guid, String, Nullable<Int32>, Nullable<Boolean>, String, TrainingParameters, Dictionary<String,List<String>>, CancellationToken)

TrainProjectWithHttpMessagesAsync(Guid, Dictionary<String,List<String>>, CancellationToken)

Queues project for training.

public System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<Microsoft.Azure.CognitiveServices.Vision.CustomVision.Training.Models.Iteration>> TrainProjectWithHttpMessagesAsync (Guid projectId, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member TrainProjectWithHttpMessagesAsync : Guid * 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.Iteration>>
Public Function TrainProjectWithHttpMessagesAsync (projectId As Guid, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of HttpOperationResponse(Of Iteration))

Parameters

projectId
System.Guid

The project id.

customHeaders
System.Collections.Generic.Dictionary<System.String,System.Collections.Generic.List<System.String>>

The headers that will be added to request.

cancellationToken
System.Threading.CancellationToken

The cancellation token.

Returns

System.Threading.Tasks.Task<HttpOperationResponse<Iteration>>

Applies to

TrainProjectWithHttpMessagesAsync(Guid, String, Nullable<Int32>, Nullable<Boolean>, String, TrainingParameters, Dictionary<String,List<String>>, CancellationToken)

public System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<Microsoft.Azure.CognitiveServices.Vision.CustomVision.Training.Models.Iteration>> TrainProjectWithHttpMessagesAsync (Guid projectId, string trainingType = default, int? reservedBudgetInHours = 0, bool? forceTrain = False, string notificationEmailAddress = default, Microsoft.Azure.CognitiveServices.Vision.CustomVision.Training.Models.TrainingParameters trainingParameters = default, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member TrainProjectWithHttpMessagesAsync : Guid * string * Nullable<int> * Nullable<bool> * string * Microsoft.Azure.CognitiveServices.Vision.CustomVision.Training.Models.TrainingParameters * 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.Iteration>>
Public Function TrainProjectWithHttpMessagesAsync (projectId As Guid, Optional trainingType As String = Nothing, Optional reservedBudgetInHours As Nullable(Of Integer) = 0, Optional forceTrain As Nullable(Of Boolean) = False, Optional notificationEmailAddress As String = Nothing, Optional trainingParameters As TrainingParameters = Nothing, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of HttpOperationResponse(Of Iteration))

Parameters

projectId
System.Guid
trainingType
System.String
reservedBudgetInHours
System.Nullable<System.Int32>
forceTrain
System.Nullable<System.Boolean>
notificationEmailAddress
System.String
trainingParameters
TrainingParameters
customHeaders
System.Collections.Generic.Dictionary<System.String,System.Collections.Generic.List<System.String>>
cancellationToken
System.Threading.CancellationToken

Returns

System.Threading.Tasks.Task<HttpOperationResponse<Iteration>>

Applies to