|  |  | 1 |  | // Copyright (c) Microsoft Corporation. All rights reserved. | 
|  |  | 2 |  | // Licensed under the MIT License. | 
|  |  | 3 |  |  | 
|  |  | 4 |  | using System; | 
|  |  | 5 |  |  | 
|  |  | 6 |  | namespace 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> | 
|  | 15 | 19 |  |         public bool ThrowOnAnyError { get; set; } = false; | 
|  |  | 20 |  |     } | 
|  |  | 21 |  | } |