FormTrainingClient.GetCopyAuthorizationAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Generate authorization for copying a custom model into the target Form Recognizer resource.
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.AI.FormRecognizer.Training.CopyAuthorization>> GetCopyAuthorizationAsync (string resourceId, string resourceRegion, System.Threading.CancellationToken cancellationToken = default);
abstract member GetCopyAuthorizationAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.AI.FormRecognizer.Training.CopyAuthorization>>
override this.GetCopyAuthorizationAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.AI.FormRecognizer.Training.CopyAuthorization>>
Public Overridable Function GetCopyAuthorizationAsync (resourceId As String, resourceRegion As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of 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
Azure SDK for .NET