diff --git a/articles/ai-services/document-intelligence/quickstarts/includes/csharp-sdk.md b/articles/ai-services/document-intelligence/quickstarts/includes/csharp-sdk.md index 4d9226b96d..ccbcbe9d2c 100644 --- a/articles/ai-services/document-intelligence/quickstarts/includes/csharp-sdk.md +++ b/articles/ai-services/document-intelligence/quickstarts/includes/csharp-sdk.md @@ -678,15 +678,15 @@ for (int i = 0; i < result.Documents.Count; i++) } if (document.Fields.TryGetValue("Items", out DocumentField itemsField) - && itemsField.Type == DocumentFieldType.Array) + && itemsField.Type == DocumentFieldType.List) { - foreach (DocumentField itemField in itemsField.ValueArray) + foreach (DocumentField itemField in itemsField.ValueList) { Console.WriteLine("Item:"); - if (itemField.Type == DocumentFieldType.Object) + if (itemField.Type == DocumentFieldType.Dictionary) { - IReadOnlyDictionary itemFields = itemField.ValueObject; + IReadOnlyDictionary itemFields = itemField.ValueDictionary; if (itemFields.TryGetValue("Description", out DocumentField itemDescriptionField) && itemDescriptionField.Type == DocumentFieldType.String)