FormTrainingClient.StartCopyModelAsync Method

Definition

Copy a custom model stored in this resource (the source) to the user specified target Form Recognizer resource.

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

Parameters

modelId
System.String

Model identifier of the model to copy to the target Form Recognizer resource.

target
CopyAuthorization

A CopyAuthorization with the copy authorization to the target Form Recognizer resource.

cancellationToken
System.Threading.CancellationToken

A System.Threading.CancellationToken controlling the request lifetime.

Returns

System.Threading.Tasks.Task<CopyModelOperation>

A CopyModelOperation to wait on this long-running operation. Its Value upon successful completion will contain meta-data about the model copied.

Applies to