/
FieldValueType.cs
73 lines (62 loc) · 1.92 KB
/
FieldValueType.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
using System;
using System.Collections.Generic;
using Azure.Core;
namespace Azure.AI.FormRecognizer.Models
{
/// <summary>
/// The type of the value of a <see cref="FormField"/>.
/// </summary>
[System.Diagnostics.CodeAnalysis.SuppressMessage("Naming", "CA1720:Identifier contains type name")]
public enum FieldValueType
{
/// <summary>
/// Used for <see cref="string"/> type.
/// </summary>
String,
/// <summary>
/// Used for <see cref="DateTime"/> type.
/// </summary>
Date,
/// <summary>
/// Used for <see cref="TimeSpan"/> type.
/// </summary>
Time,
/// <summary>
/// Used for <see cref="string"/> type with a phone number format.
/// </summary>
PhoneNumber,
/// <summary>
/// Used for <see cref="float"/> type.
/// </summary>
[CodeGenMember("Number")]
Float,
/// <summary>
/// Used for <see cref="long"/> type.
/// </summary>
[CodeGenMember("Integer")]
Int64,
/// <summary>
/// Used for <see cref="List{T}"/> type.
/// </summary>
[CodeGenMember("Array")]
List,
/// <summary>
/// Used for <see cref="Dictionary{TKey, TValue}"/> type.
/// </summary>
[CodeGenMember("Object")]
Dictionary,
/// <summary>
/// Used for <see cref="SelectionMarkState"/> type.
/// </summary>
/// <remarks>
/// This property only has value for <see cref="FormRecognizerClientOptions.ServiceVersion.V2_1"/> and newer.
/// </remarks>
SelectionMark,
/// <summary>
/// Used for <see cref="string"/> type with an ISO 3166-1 alpha-3 country code.
/// </summary>
CountryRegion
}
}