< Summary

Class:Azure.Search.Documents.IndexDocumentsOptions
Assembly:Azure.Search.Documents
File(s):C:\Git\azure-sdk-for-net\sdk\search\Azure.Search.Documents\src\Options\IndexDocumentsOptions.cs
Covered lines:1
Uncovered lines:0
Coverable lines:1
Total lines:21
Line coverage:100% (1 of 1)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
get_ThrowOnAnyError()-100%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\search\Azure.Search.Documents\src\Options\IndexDocumentsOptions.cs

#LineLine coverage
 1// Copyright (c) Microsoft Corporation. All rights reserved.
 2// Licensed under the MIT License.
 3
 4using System;
 5
 6namespace Azure.Search.Documents
 7{
 8    /// <summary>
 9    /// Options for <see cref="SearchClient.IndexDocumentsAsync{T}(Models.IndexDocumentsBatch{T}, IndexDocumentsOptions,
 10    /// </summary>
 11    public class IndexDocumentsOptions
 12    {
 13        /// <summary>
 14        /// Gets or sets a value indicating whether to throw an exception on
 15        /// any individual failure in the batch of document write operations.
 16        /// Set this to true if you're not inspecting the results of the Index
 17        /// Documents action.
 18        /// </summary>
 1519        public bool ThrowOnAnyError { get; set; } = false;
 20    }
 21}

Methods/Properties

get_ThrowOnAnyError()