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 operation Id 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)
GetRehydrationToken()

Get a token that can be used to rehydrate the operation.

(Inherited from Operation)
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)
WaitForCompletion(CancellationToken)

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

(Inherited from Operation<T>)
WaitForCompletion(DelayStrategy, CancellationToken)

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

(Inherited from Operation<T>)
WaitForCompletion(TimeSpan, CancellationToken)

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

(Inherited from Operation<T>)
WaitForCompletionAsync(CancellationToken)

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

(Inherited from CreateCustomFormModelOperation)
WaitForCompletionAsync(DelayStrategy, CancellationToken)

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

(Inherited from Operation<T>)
WaitForCompletionAsync(TimeSpan, CancellationToken)

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

(Inherited from CreateCustomFormModelOperation)
WaitForCompletionResponse(CancellationToken)

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

(Inherited from Operation)
WaitForCompletionResponse(DelayStrategy, CancellationToken)

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

(Inherited from Operation)
WaitForCompletionResponse(TimeSpan, CancellationToken)

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

(Inherited from Operation)
WaitForCompletionResponseAsync(CancellationToken)

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

(Inherited from Operation)
WaitForCompletionResponseAsync(DelayStrategy, 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