Share via


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

CloudTable.ExecuteBatch 方法

定义

以原子操作方式对表执行批处理操作。

public virtual Microsoft.Azure.Cosmos.Table.TableBatchResult ExecuteBatch (Microsoft.Azure.Cosmos.Table.TableBatchOperation batch, Microsoft.Azure.Cosmos.Table.TableRequestOptions requestOptions = default, Microsoft.Azure.Cosmos.Table.OperationContext operationContext = default);
abstract member ExecuteBatch : Microsoft.Azure.Cosmos.Table.TableBatchOperation * Microsoft.Azure.Cosmos.Table.TableRequestOptions * Microsoft.Azure.Cosmos.Table.OperationContext -> Microsoft.Azure.Cosmos.Table.TableBatchResult
override this.ExecuteBatch : Microsoft.Azure.Cosmos.Table.TableBatchOperation * Microsoft.Azure.Cosmos.Table.TableRequestOptions * Microsoft.Azure.Cosmos.Table.OperationContext -> Microsoft.Azure.Cosmos.Table.TableBatchResult
Public Overridable Function ExecuteBatch (batch As TableBatchOperation, Optional requestOptions As TableRequestOptions = Nothing, Optional operationContext As OperationContext = Nothing) As TableBatchResult

参数

batch
TableBatchOperation

表示要对表执行的操作的 TableBatchOperation 对象。

requestOptions
TableRequestOptions

一个 TableRequestOptions 对象,它指定请求的其他选项。

operationContext
OperationContext

一个 OperationContext 对象,它一个表示当前操作的上下文。

返回

TableResult 对象的可枚举集合,其中按顺序包含表的 TableBatchOperation 中每个操作的结果。

适用于