Extraction of Confidence level in Document Understanding

This was the suggestion I was referring to, but am getting error:

Result.IDocumentData(Of DataExtractionV1ApplicationFormV1).Fields.Where(Function(field) field.FieldName.Equals(“State”)).Select(Function(State) actual_field.Values.Select(Function(val) val.Confidence))(0)(0)*100