/
TranslationTarget.cs
39 lines (34 loc) · 1.36 KB
/
TranslationTarget.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System;
using System.Collections.Generic;
using Azure.Core;
namespace Azure.AI.Translation.Document
{
/// <summary> Destination for the finished translated documents. </summary>
public partial class TranslationTarget
{
/// <summary> Initializes a new instance of TranslationTarget. </summary>
/// <param name="targetUri"> Location of the folder / container with your documents. </param>
/// <param name="languageCode"> Target Language. </param>
/// <exception cref="ArgumentNullException"> <paramref name="targetUri"/> or <paramref name="languageCode"/> is null. </exception>
public TranslationTarget(Uri targetUri, string languageCode)
{
if (targetUri == null)
{
throw new ArgumentNullException(nameof(targetUri));
}
if (languageCode == null)
{
throw new ArgumentNullException(nameof(languageCode));
}
TargetUri = targetUri;
LanguageCode = languageCode;
Glossaries = new ChangeTrackingList<TranslationGlossary>();
}
/// <summary> List of Glossary. </summary>
public IList<TranslationGlossary> Glossaries { get; }
}
}