DocumentModelAdministrationClient.CopyDocumentModelTo Method

Definition

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

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