本文整理汇总了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);
}