SingleDocumentTranslationClient Constructors
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.
Overloads
SingleDocumentTranslationClient() |
Initializes a new instance of SingleDocumentTranslationClient for mocking. |
SingleDocumentTranslationClient(Uri) |
Initializes a new instance of SingleDocumentTranslationClient. |
SingleDocumentTranslationClient(Uri, DocumentTranslationClientOptions) |
Initializes a new instance of SingleDocumentTranslationClient. |
SingleDocumentTranslationClient(Uri, AzureKeyCredential) |
Initializes a new instance of SingleDocumentTranslationClient. |
SingleDocumentTranslationClient(Uri, TokenCredential) |
Initializes a new instance of SingleDocumentTranslationClient. |
SingleDocumentTranslationClient(Uri, AzureKeyCredential, DocumentTranslationClientOptions) |
Initializes a new instance of SingleDocumentTranslationClient. |
SingleDocumentTranslationClient(Uri, TokenCredential, DocumentTranslationClientOptions) |
Initializes a new instance of SingleDocumentTranslationClient. |
SingleDocumentTranslationClient()
Initializes a new instance of SingleDocumentTranslationClient for mocking.
protected SingleDocumentTranslationClient ();
Protected Sub New ()
Applies to
SingleDocumentTranslationClient(Uri)
Initializes a new instance of SingleDocumentTranslationClient.
public SingleDocumentTranslationClient (Uri endpoint);
new Azure.AI.Translation.Document.SingleDocumentTranslationClient : Uri -> Azure.AI.Translation.Document.SingleDocumentTranslationClient
Public Sub New (endpoint As Uri)
Parameters
- endpoint
- Uri
Supported document Translation endpoint, protocol and hostname, for example: https://{TranslatorResourceName}-doctranslation.cognitiveservices.azure.com
Exceptions
endpoint
is null.
Applies to
SingleDocumentTranslationClient(Uri, DocumentTranslationClientOptions)
Initializes a new instance of SingleDocumentTranslationClient.
public SingleDocumentTranslationClient (Uri endpoint, Azure.AI.Translation.Document.DocumentTranslationClientOptions options);
new Azure.AI.Translation.Document.SingleDocumentTranslationClient : Uri * Azure.AI.Translation.Document.DocumentTranslationClientOptions -> Azure.AI.Translation.Document.SingleDocumentTranslationClient
Public Sub New (endpoint As Uri, options As DocumentTranslationClientOptions)
Parameters
- endpoint
- Uri
Supported document Translation endpoint, protocol and hostname, for example: https://{TranslatorResourceName}-doctranslation.cognitiveservices.azure.com
- options
- DocumentTranslationClientOptions
The options for configuring the client.
Exceptions
endpoint
is null.
Applies to
SingleDocumentTranslationClient(Uri, AzureKeyCredential)
Initializes a new instance of SingleDocumentTranslationClient.
public SingleDocumentTranslationClient (Uri endpoint, Azure.AzureKeyCredential credential);
new Azure.AI.Translation.Document.SingleDocumentTranslationClient : Uri * Azure.AzureKeyCredential -> Azure.AI.Translation.Document.SingleDocumentTranslationClient
Public Sub New (endpoint As Uri, credential As AzureKeyCredential)
Parameters
- endpoint
- Uri
Supported document Translation endpoint, protocol and hostname, for example: https://{TranslatorResourceName}.cognitiveservices.azure.com/translator.
- credential
- AzureKeyCredential
A credential used to authenticate to an Azure Service.
Exceptions
endpoint
or credential
is null.
Applies to
SingleDocumentTranslationClient(Uri, TokenCredential)
Initializes a new instance of SingleDocumentTranslationClient.
public SingleDocumentTranslationClient (Uri endpoint, Azure.Core.TokenCredential credential);
new Azure.AI.Translation.Document.SingleDocumentTranslationClient : Uri * Azure.Core.TokenCredential -> Azure.AI.Translation.Document.SingleDocumentTranslationClient
Public Sub New (endpoint As Uri, credential As TokenCredential)
Parameters
- endpoint
- Uri
Supported document Translation endpoint, protocol and hostname, for example: https://{TranslatorResourceName}.cognitiveservices.azure.com/translator.
- credential
- TokenCredential
A credential used to authenticate to an Azure Service.
Exceptions
endpoint
or credential
is null.
Applies to
SingleDocumentTranslationClient(Uri, AzureKeyCredential, DocumentTranslationClientOptions)
Initializes a new instance of SingleDocumentTranslationClient.
public SingleDocumentTranslationClient (Uri endpoint, Azure.AzureKeyCredential credential, Azure.AI.Translation.Document.DocumentTranslationClientOptions options);
new Azure.AI.Translation.Document.SingleDocumentTranslationClient : Uri * Azure.AzureKeyCredential * Azure.AI.Translation.Document.DocumentTranslationClientOptions -> Azure.AI.Translation.Document.SingleDocumentTranslationClient
Public Sub New (endpoint As Uri, credential As AzureKeyCredential, options As DocumentTranslationClientOptions)
Parameters
- endpoint
- Uri
Supported document Translation endpoint, protocol and hostname, for example: https://{TranslatorResourceName}.cognitiveservices.azure.com/translator.
- credential
- AzureKeyCredential
A credential used to authenticate to an Azure Service.
- options
- DocumentTranslationClientOptions
The options for configuring the client.
Exceptions
endpoint
or credential
is null.
Applies to
SingleDocumentTranslationClient(Uri, TokenCredential, DocumentTranslationClientOptions)
Initializes a new instance of SingleDocumentTranslationClient.
public SingleDocumentTranslationClient (Uri endpoint, Azure.Core.TokenCredential credential, Azure.AI.Translation.Document.DocumentTranslationClientOptions options);
new Azure.AI.Translation.Document.SingleDocumentTranslationClient : Uri * Azure.Core.TokenCredential * Azure.AI.Translation.Document.DocumentTranslationClientOptions -> Azure.AI.Translation.Document.SingleDocumentTranslationClient
Public Sub New (endpoint As Uri, credential As TokenCredential, options As DocumentTranslationClientOptions)
Parameters
- endpoint
- Uri
Supported document Translation endpoint, protocol and hostname, for example: https://{TranslatorResourceName}.cognitiveservices.azure.com/translator.
- credential
- TokenCredential
A credential used to authenticate to an Azure Service.
- options
- DocumentTranslationClientOptions
The options for configuring the client.
Exceptions
endpoint
or credential
is null.
Applies to
Azure SDK for .NET