From 9f4e58153f8ad4d081fcf4ed2a349bf4113fc936 Mon Sep 17 00:00:00 2001 From: Jason Manoloudis <29868879+JayGhb@users.noreply.github.com> Date: Thu, 5 Dec 2024 14:37:26 +0200 Subject: [PATCH] Update csharp-sdk.md Updated code example based on latest SDK version. --- .../quickstarts/includes/csharp-sdk.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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)