Udostępnij za pośrednictwem


CloudTable.ExecuteQuery Method

Definition

Overloads

ExecuteQuery(TableQuery, TableRequestOptions, OperationContext)

Executes a query on a table and returns an enumerable collection of DynamicTableEntity objects.

ExecuteQuery<TElement,TResult>(TableQuery<TElement>, EntityResolver<TResult>, TableRequestOptions, OperationContext)

Executes a query and applies the specified EntityResolver<T> to the result.

ExecuteQuery<TElement>(TableQuery<TElement>, TableRequestOptions, OperationContext)

Executes a query on a table.

ExecuteQuery<TResult>(TableQuery, EntityResolver<TResult>, TableRequestOptions, OperationContext)

Executes a query on a table and applies the specified EntityResolver<T> to the result.

ExecuteQuery(TableQuery, TableRequestOptions, OperationContext)

Executes a query on a table and returns an enumerable collection of DynamicTableEntity objects.

public virtual System.Collections.Generic.IEnumerable<Microsoft.Azure.Cosmos.Table.DynamicTableEntity> ExecuteQuery (Microsoft.Azure.Cosmos.Table.TableQuery query, Microsoft.Azure.Cosmos.Table.TableRequestOptions requestOptions = default, Microsoft.Azure.Cosmos.Table.OperationContext operationContext = default);
abstract member ExecuteQuery : Microsoft.Azure.Cosmos.Table.TableQuery * Microsoft.Azure.Cosmos.Table.TableRequestOptions * Microsoft.Azure.Cosmos.Table.OperationContext -> seq<Microsoft.Azure.Cosmos.Table.DynamicTableEntity>
override this.ExecuteQuery : Microsoft.Azure.Cosmos.Table.TableQuery * Microsoft.Azure.Cosmos.Table.TableRequestOptions * Microsoft.Azure.Cosmos.Table.OperationContext -> seq<Microsoft.Azure.Cosmos.Table.DynamicTableEntity>
Public Overridable Function ExecuteQuery (query As TableQuery, Optional requestOptions As TableRequestOptions = Nothing, Optional operationContext As OperationContext = Nothing) As IEnumerable(Of DynamicTableEntity)

Parameters

query
TableQuery

A TableQuery representing the query to execute.

requestOptions
TableRequestOptions

A TableRequestOptions object that specifies additional options for the request.

operationContext
OperationContext

An OperationContext object that represents the context for the current operation.

Returns

An enumerable collection of DynamicTableEntity objects, representing table entities returned by the query.

Applies to

ExecuteQuery<TElement,TResult>(TableQuery<TElement>, EntityResolver<TResult>, TableRequestOptions, OperationContext)

Executes a query and applies the specified EntityResolver<T> to the result.

public virtual System.Collections.Generic.IEnumerable<TResult> ExecuteQuery<TElement,TResult> (Microsoft.Azure.Cosmos.Table.TableQuery<TElement> query, Microsoft.Azure.Cosmos.Table.EntityResolver<TResult> resolver, Microsoft.Azure.Cosmos.Table.TableRequestOptions requestOptions = default, Microsoft.Azure.Cosmos.Table.OperationContext operationContext = default) where TElement : Microsoft.Azure.Cosmos.Table.ITableEntity, new();
abstract member ExecuteQuery : Microsoft.Azure.Cosmos.Table.TableQuery<'Element (requires 'Element :> Microsoft.Azure.Cosmos.Table.ITableEntity and 'Element : (new : unit -> 'Element))> * Microsoft.Azure.Cosmos.Table.EntityResolver<'Result> * Microsoft.Azure.Cosmos.Table.TableRequestOptions * Microsoft.Azure.Cosmos.Table.OperationContext -> seq<'Result> (requires 'Element :> Microsoft.Azure.Cosmos.Table.ITableEntity and 'Element : (new : unit -> 'Element))
override this.ExecuteQuery : Microsoft.Azure.Cosmos.Table.TableQuery<'Element (requires 'Element :> Microsoft.Azure.Cosmos.Table.ITableEntity and 'Element : (new : unit -> 'Element))> * Microsoft.Azure.Cosmos.Table.EntityResolver<'Result> * Microsoft.Azure.Cosmos.Table.TableRequestOptions * Microsoft.Azure.Cosmos.Table.OperationContext -> seq<'Result> (requires 'Element :> Microsoft.Azure.Cosmos.Table.ITableEntity and 'Element : (new : unit -> 'Element))
Public Overridable Function ExecuteQuery(Of TElement As {ITableEntityNew}, TResult As {ITableEntityNew}) (query As TableQuery(Of TElement), resolver As EntityResolver(Of TResult), Optional requestOptions As TableRequestOptions = Nothing, Optional operationContext As OperationContext = Nothing) As IEnumerable(Of TResult)

Type Parameters

TElement

The entity type of the query.

TResult

The type into which the EntityResolver<T> will project the query results.

Parameters

query
TableQuery<TElement>

A TableQuery instance specifying the table to query and the query parameters to use, specialized for a type TElement.

resolver
EntityResolver<TResult>

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

requestOptions
TableRequestOptions

A TableRequestOptions object that specifies additional options for the request.

operationContext
OperationContext

An OperationContext object that represents the context for the current operation.

Returns

IEnumerable<TResult>

An enumerable collection, containing the projection into type TResult, of the results of executing the query.

Applies to

ExecuteQuery<TElement>(TableQuery<TElement>, TableRequestOptions, OperationContext)

Executes a query on a table.

public virtual System.Collections.Generic.IEnumerable<TElement> ExecuteQuery<TElement> (Microsoft.Azure.Cosmos.Table.TableQuery<TElement> query, Microsoft.Azure.Cosmos.Table.TableRequestOptions requestOptions = default, Microsoft.Azure.Cosmos.Table.OperationContext operationContext = default) where TElement : Microsoft.Azure.Cosmos.Table.ITableEntity, new();
abstract member ExecuteQuery : Microsoft.Azure.Cosmos.Table.TableQuery<'Element (requires 'Element :> Microsoft.Azure.Cosmos.Table.ITableEntity and 'Element : (new : unit -> 'Element))> * Microsoft.Azure.Cosmos.Table.TableRequestOptions * Microsoft.Azure.Cosmos.Table.OperationContext -> seq<'Element (requires 'Element :> Microsoft.Azure.Cosmos.Table.ITableEntity and 'Element : (new : unit -> 'Element))> (requires 'Element :> Microsoft.Azure.Cosmos.Table.ITableEntity and 'Element : (new : unit -> 'Element))
override this.ExecuteQuery : Microsoft.Azure.Cosmos.Table.TableQuery<'Element (requires 'Element :> Microsoft.Azure.Cosmos.Table.ITableEntity and 'Element : (new : unit -> 'Element))> * Microsoft.Azure.Cosmos.Table.TableRequestOptions * Microsoft.Azure.Cosmos.Table.OperationContext -> seq<'Element (requires 'Element :> Microsoft.Azure.Cosmos.Table.ITableEntity and 'Element : (new : unit -> 'Element))> (requires 'Element :> Microsoft.Azure.Cosmos.Table.ITableEntity and 'Element : (new : unit -> 'Element))
Public Overridable Function ExecuteQuery(Of TElement As {ITableEntityNew}) (query As TableQuery(Of TElement), Optional requestOptions As TableRequestOptions = Nothing, Optional operationContext As OperationContext = Nothing) As IEnumerable(Of TElement)

Type Parameters

TElement

The entity type of the query.

Parameters

query
TableQuery<TElement>

A TableQuery instance specifying the table to query and the query parameters to use, specialized for a type TElement.

requestOptions
TableRequestOptions

A TableRequestOptions object that specifies additional options for the request.

operationContext
OperationContext

An OperationContext object that represents the context for the current operation.

Returns

IEnumerable<TElement>

An enumerable collection, specialized for type TElement, of the results of executing the query.

Applies to

ExecuteQuery<TResult>(TableQuery, EntityResolver<TResult>, TableRequestOptions, OperationContext)

Executes a query on a table and applies the specified EntityResolver<T> to the result.

public virtual System.Collections.Generic.IEnumerable<TResult> ExecuteQuery<TResult> (Microsoft.Azure.Cosmos.Table.TableQuery query, Microsoft.Azure.Cosmos.Table.EntityResolver<TResult> resolver, Microsoft.Azure.Cosmos.Table.TableRequestOptions requestOptions = default, Microsoft.Azure.Cosmos.Table.OperationContext operationContext = default);
abstract member ExecuteQuery : Microsoft.Azure.Cosmos.Table.TableQuery * Microsoft.Azure.Cosmos.Table.EntityResolver<'Result> * Microsoft.Azure.Cosmos.Table.TableRequestOptions * Microsoft.Azure.Cosmos.Table.OperationContext -> seq<'Result>
override this.ExecuteQuery : Microsoft.Azure.Cosmos.Table.TableQuery * Microsoft.Azure.Cosmos.Table.EntityResolver<'Result> * Microsoft.Azure.Cosmos.Table.TableRequestOptions * Microsoft.Azure.Cosmos.Table.OperationContext -> seq<'Result>
Public Overridable Function ExecuteQuery(Of TResult) (query As TableQuery, resolver As EntityResolver(Of TResult), Optional requestOptions As TableRequestOptions = Nothing, Optional operationContext As OperationContext = Nothing) As IEnumerable(Of TResult)

Type Parameters

TResult

Parameters

query
TableQuery

A TableQuery representing the query to execute.

resolver
EntityResolver<TResult>

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

requestOptions
TableRequestOptions

A TableRequestOptions object that specifies additional options for the request.

operationContext
OperationContext

An OperationContext object that represents the context for the current operation.

Returns

IEnumerable<TResult>

An enumerable collection, containing the projection into type TResult, of the results of executing the query.

Applies to