< Summary

Class:Azure.AI.TextAnalytics.RecognizeEntitiesResultCollection
Assembly:Azure.AI.TextAnalytics
File(s):C:\Git\azure-sdk-for-net\sdk\textanalytics\Azure.AI.TextAnalytics\src\RecognizeEntitiesResultCollection.cs
Covered lines:6
Uncovered lines:0
Coverable lines:6
Total lines:34
Line coverage:100% (6 of 6)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor(...)-100%100%
get_Statistics()-100%100%
get_ModelVersion()-100%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\textanalytics\Azure.AI.TextAnalytics\src\RecognizeEntitiesResultCollection.cs

#LineLine coverage
 1// Copyright (c) Microsoft Corporation. All rights reserved.
 2// Licensed under the MIT License.
 3
 4using System.Collections.Generic;
 5using System.Collections.ObjectModel;
 6
 7namespace Azure.AI.TextAnalytics
 8{
 9    /// <summary>
 10    /// Collection of <see cref="RecognizeEntitiesResult"/> objects corresponding
 11    /// to a batch of documents, and information about the batch operation.
 12    /// </summary>
 13    public class RecognizeEntitiesResultCollection : ReadOnlyCollection<RecognizeEntitiesResult>
 14    {
 4815        internal RecognizeEntitiesResultCollection(IList<RecognizeEntitiesResult> list, TextDocumentBatchStatistics stat
 16        {
 4817            Statistics = statistics;
 4818            ModelVersion = modelVersion;
 4819        }
 20
 21        /// <summary>
 22        /// Gets statistics about the documents and how it was processed
 23        /// by the service.  This property will have a value when IncludeStatistics
 24        /// is set to true in the client call.
 25        /// </summary>
 3226        public TextDocumentBatchStatistics Statistics { get; }
 27
 28        /// <summary>
 29        /// Gets the version of the Text Analytics model used by this operation
 30        /// on this batch of documents.
 31        /// </summary>
 832        public string ModelVersion { get; }
 33    }
 34}