你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

IBulkExecutor.BulkImportAsync 方法

定义

重载

BulkImportAsync(IEnumerable<Object>, Boolean, Boolean, Nullable<Int32>, Nullable<Int32>, CancellationToken)
BulkImportAsync(IEnumerable<String>, Boolean, Boolean, Nullable<Int32>, Nullable<Int32>, CancellationToken)

BulkImportAsync(IEnumerable<Object>, Boolean, Boolean, Nullable<Int32>, Nullable<Int32>, CancellationToken)

public System.Threading.Tasks.Task<Microsoft.Azure.CosmosDB.BulkExecutor.BulkImport.BulkImportResponse> BulkImportAsync (System.Collections.Generic.IEnumerable<object> documents, bool enableUpsert = false, bool disableAutomaticIdGeneration = false, int? maxConcurrencyPerPartitionKeyRange = default, int? maxInMemorySortingBatchSize = default, System.Threading.CancellationToken cancellationToken = default);
abstract member BulkImportAsync : seq<obj> * bool * bool * Nullable<int> * Nullable<int> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.CosmosDB.BulkExecutor.BulkImport.BulkImportResponse>
Public Function BulkImportAsync (documents As IEnumerable(Of Object), Optional enableUpsert As Boolean = false, Optional disableAutomaticIdGeneration As Boolean = false, Optional maxConcurrencyPerPartitionKeyRange As Nullable(Of Integer) = Nothing, Optional maxInMemorySortingBatchSize As Nullable(Of Integer) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of BulkImportResponse)

参数

documents
IEnumerable<Object>
enableUpsert
Boolean
disableAutomaticIdGeneration
Boolean
maxConcurrencyPerPartitionKeyRange
Nullable<Int32>
maxInMemorySortingBatchSize
Nullable<Int32>
cancellationToken
CancellationToken

返回

适用于

BulkImportAsync(IEnumerable<String>, Boolean, Boolean, Nullable<Int32>, Nullable<Int32>, CancellationToken)

public System.Threading.Tasks.Task<Microsoft.Azure.CosmosDB.BulkExecutor.BulkImport.BulkImportResponse> BulkImportAsync (System.Collections.Generic.IEnumerable<string> documents, bool enableUpsert = false, bool disableAutomaticIdGeneration = false, int? maxConcurrencyPerPartitionKeyRange = default, int? maxInMemorySortingBatchSize = default, System.Threading.CancellationToken cancellationToken = default);
abstract member BulkImportAsync : seq<string> * bool * bool * Nullable<int> * Nullable<int> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.CosmosDB.BulkExecutor.BulkImport.BulkImportResponse>
Public Function BulkImportAsync (documents As IEnumerable(Of String), Optional enableUpsert As Boolean = false, Optional disableAutomaticIdGeneration As Boolean = false, Optional maxConcurrencyPerPartitionKeyRange As Nullable(Of Integer) = Nothing, Optional maxInMemorySortingBatchSize As Nullable(Of Integer) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of BulkImportResponse)

参数

documents
IEnumerable<String>
enableUpsert
Boolean
disableAutomaticIdGeneration
Boolean
maxConcurrencyPerPartitionKeyRange
Nullable<Int32>
maxInMemorySortingBatchSize
Nullable<Int32>
cancellationToken
CancellationToken

返回

适用于