DocumentTranslationInput 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
DocumentTranslationInput(TranslationSource, IEnumerable<TranslationTarget>) |
Initializes a new instance of DocumentTranslationInput. |
DocumentTranslationInput(Uri, Uri, String, TranslationGlossary) |
Initializes a new instance of DocumentTranslationInput. |
DocumentTranslationInput(TranslationSource, IEnumerable<TranslationTarget>)
- Source:
- DocumentTranslationInput.cs
- Source:
- DocumentTranslationInput.cs
Initializes a new instance of DocumentTranslationInput.
public DocumentTranslationInput (Azure.AI.Translation.Document.TranslationSource source, System.Collections.Generic.IEnumerable<Azure.AI.Translation.Document.TranslationTarget> targets);
new Azure.AI.Translation.Document.DocumentTranslationInput : Azure.AI.Translation.Document.TranslationSource * seq<Azure.AI.Translation.Document.TranslationTarget> -> Azure.AI.Translation.Document.DocumentTranslationInput
Public Sub New (source As TranslationSource, targets As IEnumerable(Of TranslationTarget))
Parameters
- source
- TranslationSource
Source of the input documents.
- targets
- IEnumerable<TranslationTarget>
Location of the destination for the output.
Exceptions
source
or targets
is null.
Applies to
DocumentTranslationInput(Uri, Uri, String, TranslationGlossary)
- Source:
- DocumentTranslationInput.cs
- Source:
- DocumentTranslationInput.cs
Initializes a new instance of DocumentTranslationInput.
public DocumentTranslationInput (Uri sourceUri, Uri targetUri, string targetLanguageCode, Azure.AI.Translation.Document.TranslationGlossary glossary = default);
new Azure.AI.Translation.Document.DocumentTranslationInput : Uri * Uri * string * Azure.AI.Translation.Document.TranslationGlossary -> Azure.AI.Translation.Document.DocumentTranslationInput
Public Sub New (sourceUri As Uri, targetUri As Uri, targetLanguageCode As String, Optional glossary As TranslationGlossary = Nothing)
Parameters
- sourceUri
- Uri
The SAS URI for the source container containing documents to be translated. See the service documentation for the supported SAS permissions for accessing source storage containers/blobs: .
- targetUri
- Uri
The SAS URI for the target container to which the translated documents will be written. See the service documentation for the supported SAS permissions for accessing target storage containers/blobs: .
- targetLanguageCode
- String
Language code to translate documents to. For supported languages see .
- glossary
- TranslationGlossary
Custom TranslationGlossary to be used in the translation operation. For supported file types see GetSupportedFormatsAsync(Nullable<FileFormatType>, CancellationToken).
Applies to
Azure SDK for .NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기