当前位置: 首页>>代码示例>>C#>>正文


C# TableBatchOperation.ExecuteAsync方法代码示例

本文整理汇总了C#中TableBatchOperation.ExecuteAsync方法的典型用法代码示例。如果您正苦于以下问题:C# TableBatchOperation.ExecuteAsync方法的具体用法?C# TableBatchOperation.ExecuteAsync怎么用?C# TableBatchOperation.ExecuteAsync使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在TableBatchOperation的用法示例。


在下文中一共展示了TableBatchOperation.ExecuteAsync方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: ExecuteBatchAsync

 /// <summary>
 /// Executes a batch operation on a table as an atomic operation, using the specified <see cref="TableRequestOptions"/> and <see cref="OperationContext"/>.
 /// </summary>
 /// <param name="batch">The <see cref="TableBatchOperation"/> object representing the operations to execute on the table.</param>
 /// <param name="requestOptions">A <see cref="TableRequestOptions"/> object that specifies execution options, such as retry policy and timeout settings, for the operation.</param>
 /// <param name="operationContext">An <see cref="OperationContext"/> object for tracking the current operation.</param>
 /// <returns>An enumerable collection of <see cref="TableResult"/> objects that contains the results, in order, of each operation in the <see cref="TableBatchOperation"/> on the table.</returns>
 public IAsyncOperation<IList<TableResult>> ExecuteBatchAsync(TableBatchOperation batch, TableRequestOptions requestOptions, OperationContext operationContext)
 {
     CommonUtility.AssertNotNull("batch", batch);
     return batch.ExecuteAsync(this.ServiceClient, this.Name, requestOptions, operationContext);
 }
开发者ID:BurtHarris,项目名称:azure-storage-net,代码行数:12,代码来源:CloudTable.cs


注:本文中的TableBatchOperation.ExecuteAsync方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。