DocumentModelAdministrationClient.CopyDocumentModelToAsync 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.DocumentAnalysis.CopyDocumentModelToOperation> CopyDocumentModelToAsync (Azure.WaitUntil waitUntil, string modelId, Azure.AI.FormRecognizer.DocumentAnalysis.DocumentModelCopyAuthorization target, System.Threading.CancellationToken cancellationToken = default);
abstract member CopyDocumentModelToAsync : Azure.WaitUntil * string * Azure.AI.FormRecognizer.DocumentAnalysis.DocumentModelCopyAuthorization * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.AI.FormRecognizer.DocumentAnalysis.CopyDocumentModelToOperation>
override this.CopyDocumentModelToAsync : Azure.WaitUntil * string * Azure.AI.FormRecognizer.DocumentAnalysis.DocumentModelCopyAuthorization * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.AI.FormRecognizer.DocumentAnalysis.CopyDocumentModelToOperation>
Public Overridable Function CopyDocumentModelToAsync (waitUntil As WaitUntil, modelId As String, target As DocumentModelCopyAuthorization, Optional cancellationToken As CancellationToken = Nothing) As Task(Of CopyDocumentModelToOperation)

Parameters

waitUntil
WaitUntil

Completed if the method should wait to return until the long-running operation has completed on the service; Started if it should return after starting the operation.

modelId
String

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

target
DocumentModelCopyAuthorization

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

cancellationToken
CancellationToken

A CancellationToken controlling the request lifetime.

Returns

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

Applies to