你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

FormTrainingClient.GetCopyAuthorization Method

Definition

Generate authorization for copying a custom model into the target Form Recognizer resource.

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

Parameters

resourceId
String

Azure Resource Id of the target Form Recognizer resource where the model will be copied to. This information can be found in the Properties section of the Form Recognizer resource in the Azure Portal.

resourceRegion
String

Location of the target Form Recognizer resource. This information can be found in the Keys and Endpoint section of the Form Recognizer resource in the Azure Portal.

cancellationToken
CancellationToken

A CancellationToken controlling the request lifetime.

Returns

A Response<T> representing the result of the operation. It can be cast to CopyAuthorization containing the authorization information necessary to copy a custom model into a target Form Recognizer resource.

Applies to