Share via


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
String

The ID of the model to retrieve.

cancellationToken
CancellationToken

A CancellationToken controlling the request lifetime.

Returns

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

Applies to