FormTrainingClient.GetCustomModelAsync(String, CancellationToken) Method

Definition

Gets a description of a custom model, including the types of forms it can recognize and the fields it will extract for each form type.

public virtual System.Threading.Tasks.Task<Azure.Response<Azure.AI.FormRecognizer.Training.CustomFormModel>> GetCustomModelAsync (string modelId, System.Threading.CancellationToken cancellationToken = default);
abstract member GetCustomModelAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.AI.FormRecognizer.Training.CustomFormModel>>
override this.GetCustomModelAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.AI.FormRecognizer.Training.CustomFormModel>>
Public Overridable Function GetCustomModelAsync (modelId As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of CustomFormModel))

Parameters

modelId
System.String

The ID of the model to retrieve.

cancellationToken
System.Threading.CancellationToken

A System.Threading.CancellationToken controlling the request lifetime.

Returns

System.Threading.Tasks.Task<Response<CustomFormModel>>

A Response<T> representing the result of the operation. It can be cast to a CustomFormModel containing information about the requested model.

Applies to