Condividi tramite


DocumentModelCopyAuthorization Constructor

Definition

Initializes a new instance of CopyAuthorization.

public DocumentModelCopyAuthorization (string targetResourceId, string targetResourceRegion, string targetModelId, Uri targetModelLocation, string accessToken, DateTimeOffset expiresOn);
new Azure.AI.FormRecognizer.DocumentAnalysis.DocumentModelCopyAuthorization : string * string * string * Uri * string * DateTimeOffset -> Azure.AI.FormRecognizer.DocumentAnalysis.DocumentModelCopyAuthorization
Public Sub New (targetResourceId As String, targetResourceRegion As String, targetModelId As String, targetModelLocation As Uri, accessToken As String, expiresOn As DateTimeOffset)

Parameters

targetResourceId
String

ID of the target Azure resource where the model should be copied to.

targetResourceRegion
String

Location of the target Azure resource where the model should be copied to.

targetModelId
String

Identifier of the target model.

targetModelLocation
Uri

URI of the copied model in the target account.

accessToken
String

Token used to authorize the request.

expiresOn
DateTimeOffset

Date/time when the access token expires.

Exceptions

targetResourceId, targetResourceRegion, targetModelId, targetModelLocation or accessToken is null.

targetResourceId, targetResourceRegion, targetModelId or accessToken is empty.

Applies to