Share via


IStorageTableManagement.QueryTableEntities<T> Method

Definition

Queries entities in the table.

public System.Collections.Generic.IEnumerable<T> QueryTableEntities<T> (string tableName, string filter, int maxPerPage, System.Collections.Generic.IEnumerable<string> selects, System.Threading.CancellationToken cancellationToken) where T : class, Azure.Data.Tables.ITableEntity, new();
abstract member QueryTableEntities : string * string * int * seq<string> * System.Threading.CancellationToken -> seq<'T (requires 'T : null and 'T :> Azure.Data.Tables.ITableEntity and 'T : (new : unit -> 'T))> (requires 'T : null and 'T :> Azure.Data.Tables.ITableEntity and 'T : (new : unit -> 'T))
Public Function QueryTableEntities(Of T As {Class, ITableEntity, New}) (tableName As String, filter As String, maxPerPage As Integer, selects As IEnumerable(Of String), cancellationToken As CancellationToken) As IEnumerable(Of T)

Type Parameters

T

A custom model type that implements ITableEntity or an instance of TableEntity.

Parameters

tableName
String
filter
String

Returns only entities that satisfy the specified OData filter. For example, "PartitionKey eq 'foo'".

maxPerPage
Int32

The maximum number of entities that will be returned per page.

selects
IEnumerable<String>

An IEnumerable<T> of entity property names that selects which set of entity properties to return in the result set.

cancellationToken
CancellationToken

A CancellationToken controlling the request lifetime.

Returns

Applies to