CopyAuthorization(String, String, String, Uri, String, DateTimeOffset) 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 CopyAuthorization.
public CopyAuthorization (string targetResourceId, string targetResourceRegion, string targetModelId, Uri targetModelLocation, string accessToken, DateTimeOffset expirationDateTime);
new Azure.AI.DocumentIntelligence.CopyAuthorization : string * string * string * Uri * string * DateTimeOffset -> Azure.AI.DocumentIntelligence.CopyAuthorization
Public Sub New (targetResourceId As String, targetResourceRegion As String, targetModelId As String, targetModelLocation As Uri, accessToken As String, expirationDateTime 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.
- expirationDateTime
- DateTimeOffset
Date/time when the access token expires.
Exceptions
targetResourceId
, targetResourceRegion
, targetModelId
, targetModelLocation
or accessToken
is null.
Applies to
Azure SDK for .NET