ModelCopyAuthorization Constructor
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.
Initializes a new instance of ModelCopyAuthorization.
public ModelCopyAuthorization (string targetResourceId, string targetResourceRegion, string targetModelId, Uri targetModelLocation, string accessToken, DateTimeOffset expiresOn);
new Azure.AI.DocumentIntelligence.ModelCopyAuthorization : string * string * string * Uri * string * DateTimeOffset -> Azure.AI.DocumentIntelligence.ModelCopyAuthorization
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 document model should be copied to.
- targetResourceRegion
- String
Location of the target Azure resource where the document model should be copied to.
- targetModelId
- String
Identifier of the target document model.
- targetModelLocation
- Uri
URL of the copied document 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.
Applies to
Azure SDK for .NET