TrainingOperation Class

Definition

Tracks the status of a long-running operation for training a model from a collection of custom forms.

public class TrainingOperation : Azure.AI.FormRecognizer.Training.CreateCustomFormModelOperation
type TrainingOperation = class
    inherit CreateCustomFormModelOperation
Public Class TrainingOperation
Inherits CreateCustomFormModelOperation
Inheritance

Constructors

TrainingOperation()

Initializes a new instance of the TrainingOperation class. This constructor is intended to be used for mocking only.

TrainingOperation(String, FormTrainingClient)

Initializes a new instance of the TrainingOperation class which tracks the status of a long-running operation for training a model from a collection of custom forms.

Properties

HasCompleted

Returns true if the long-running operation completed.

(Inherited from CreateCustomFormModelOperation)
HasValue

Returns true if the long-running operation completed successfully and has produced final result (accessible by Value property).

(Inherited from CreateCustomFormModelOperation)
Id

Gets an ID representing the operation that can be used to poll for the status of the long-running operation.

(Inherited from CreateCustomFormModelOperation)
Value

Final result of the long-running operation.

(Inherited from CreateCustomFormModelOperation)

Methods

GetRawResponse()

The last HTTP response received from the server.

(Inherited from CreateCustomFormModelOperation)
UpdateStatus(CancellationToken)

Calls the server to get updated status of the long-running operation.

(Inherited from CreateCustomFormModelOperation)
UpdateStatusAsync(CancellationToken)

Calls the server to get updated status of the long-running operation.

(Inherited from CreateCustomFormModelOperation)
WaitForCompletionAsync(CancellationToken)

Periodically calls the server till the long-running operation completes.

(Inherited from CreateCustomFormModelOperation)
WaitForCompletionAsync(TimeSpan, CancellationToken)

Periodically calls the server till the long-running operation completes.

(Inherited from CreateCustomFormModelOperation)
WaitForCompletionResponseAsync(CancellationToken)

Periodically calls the server till the long-running operation completes.

(Inherited from Operation)
WaitForCompletionResponseAsync(TimeSpan, CancellationToken)

Periodically calls the server till the long-running operation completes.

(Inherited from Operation)

Applies to