CloudTable.ExecuteQuerySegmentedAsync Method (TableQuery, EntityResolver, TableContinuationToken, TableRequestOptions, OperationContext)

Windows Runtime Azure Storage Client Library

Executes a query asynchronously in segmented mode, using the specified TableQuery query, TableContinuationToken continuation token, TableRequestOptions options, and OperationContext context, and applies the EntityResolver to the result.

Namespace: Microsoft.WindowsAzure.Storage.Table
Assembly: Microsoft.WindowsAzure.Storage (in Microsoft.WindowsAzure.Storage.dll)

Usage

Visual Basic
Dim instance As CloudTable
Dim query As TableQuery(Of T)
Dim resolver As EntityResolver(Of TResult)
Dim token As TableContinuationToken
Dim requestOptions As TableRequestOptions
Dim operationContext As OperationContext
Dim returnValue As IAsyncOperation(Of TableQuerySegment(Of TResult))

returnValue = instance.ExecuteQuerySegmentedAsync(query, resolver, token, requestOptions, operationContext)

Syntax

Visual Basic
Public Function ExecuteQuerySegmentedAsync(Of T As ITableEntity, TResult) ( _
	query As TableQuery(Of T), _
	resolver As EntityResolver(Of TResult), _
	token As TableContinuationToken, _
	requestOptions As TableRequestOptions, _
	operationContext As OperationContext _
) As IAsyncOperation(Of TableQuerySegment(Of TResult))
C#
public IAsyncOperation<TableQuerySegment<TResult>> ExecuteQuerySegmentedAsync<T,TResult> (
	TableQuery<T> query,
	EntityResolver<TResult> resolver,
	TableContinuationToken token,
	TableRequestOptions requestOptions,
	OperationContext operationContext
) where T : ITableEntity
C++
public:
generic<typename T, typename TResult> where T : ITableEntity
IAsyncOperation<TableQuerySegment<TResult>^>^ ExecuteQuerySegmentedAsync (
	TableQuery<T>^ query, 
	EntityResolver<TResult>^ resolver, 
	TableContinuationToken^ token, 
	TableRequestOptions^ requestOptions, 
	OperationContext^ operationContext
)
J#
JScript

GenericParameters

T

The entity type of the query.

TResult

The type into which the EntityResolver will project the query results.

Parameters

table

The input CloudTable, which acts as the this instance for the extension method.

query

A TableQuery representing the query to execute.

resolver

An EntityResolver instance which creates a projection of the table query result entities into the specified type TResult.

token

A TableContinuationToken object representing a continuation token from the server when the operation returns a partial result.

requestOptions

A TableRequestOptions object that specifies execution options, such as retry policy and timeout settings, for the operation.

operationContext

An OperationContext object for tracking the current operation.

Return Value

A TableQuerySegment containing the projection into type TResult of the results of executing the query.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Vista, Windows 7, Windows Server 2008, Windows 8.1, Windows Server 2012 R2, Windows 8 and Windows Server 2012

Target Platforms

See Also