次の方法で共有


TableClient.QueryAsync メソッド

定義

オーバーロード

QueryAsync<T>(Expression<Func<T,Boolean>>, Nullable<Int32>, IEnumerable<String>, CancellationToken)

テーブル内のエンティティを照会します。

QueryAsync<T>(String, Nullable<Int32>, IEnumerable<String>, CancellationToken)

テーブル内のエンティティを照会します。

QueryAsync<T>(Expression<Func<T,Boolean>>, Nullable<Int32>, IEnumerable<String>, CancellationToken)

ソース:
TableClient.cs

テーブル内のエンティティを照会します。

public virtual Azure.AsyncPageable<T> QueryAsync<T> (System.Linq.Expressions.Expression<Func<T,bool>> filter, int? maxPerPage = default, System.Collections.Generic.IEnumerable<string> select = default, System.Threading.CancellationToken cancellationToken = default) where T : class, Azure.Data.Tables.ITableEntity;
abstract member QueryAsync : System.Linq.Expressions.Expression<Func<'T, bool>> * Nullable<int> * seq<string> * System.Threading.CancellationToken -> Azure.AsyncPageable<'T (requires 'T : null and 'T :> Azure.Data.Tables.ITableEntity)> (requires 'T : null and 'T :> Azure.Data.Tables.ITableEntity)
override this.QueryAsync : System.Linq.Expressions.Expression<Func<'T, bool>> * Nullable<int> * seq<string> * System.Threading.CancellationToken -> Azure.AsyncPageable<'T (requires 'T : null and 'T :> Azure.Data.Tables.ITableEntity)> (requires 'T : null and 'T :> Azure.Data.Tables.ITableEntity)
Public Overridable Function QueryAsync(Of T As {Class, ITableEntity}) (filter As Expression(Of Func(Of T, Boolean)), Optional maxPerPage As Nullable(Of Integer) = Nothing, Optional select As IEnumerable(Of String) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of T)

型パラメーター

T

または のインスタンスTableEntityを実装するITableEntityカスタム モデル型。

パラメーター

filter
Expression<Func<T,Boolean>>

指定したフィルター式を満たすエンティティのみを返します。 たとえば、次の式では、PartitionKey が 'foo' のエンティティをフィルター処理します。 e => e.PartitionKey == "foo"

maxPerPage
Nullable<Int32>

ページごとに返されるエンティティの最大数。 指定しない場合、ストレージ アカウントの既定値は 1000 であり、Cosmos DB テーブル API には制限されません。 注: 結果が完全に列挙されている場合、この値は結果の合計数を制限しません。

select
IEnumerable<String>

IEnumerable<T>結果セットで返すエンティティ プロパティのセットを選択するエンティティ プロパティ名の 。 たとえば、次の値は PartitionKey プロパティと RowKey プロパティのみを返します。 new[] { "PartitionKey, RowKey"}

cancellationToken
CancellationToken

CancellationToken要求の有効期間を制御する 。

戻り値

AsyncPageable<T>Tとしてシリアル化されたエンティティ モデルのコレクションを格納している 。

例外

サーバーからエラーが返されました。 サーバーから返される詳細については、「」を参照してください Message

適用対象

QueryAsync<T>(String, Nullable<Int32>, IEnumerable<String>, CancellationToken)

ソース:
TableClient.cs

テーブル内のエンティティを照会します。

public virtual Azure.AsyncPageable<T> QueryAsync<T> (string filter = default, int? maxPerPage = default, System.Collections.Generic.IEnumerable<string> select = default, System.Threading.CancellationToken cancellationToken = default) where T : class, Azure.Data.Tables.ITableEntity;
abstract member QueryAsync : string * Nullable<int> * seq<string> * System.Threading.CancellationToken -> Azure.AsyncPageable<'T (requires 'T : null and 'T :> Azure.Data.Tables.ITableEntity)> (requires 'T : null and 'T :> Azure.Data.Tables.ITableEntity)
override this.QueryAsync : string * Nullable<int> * seq<string> * System.Threading.CancellationToken -> Azure.AsyncPageable<'T (requires 'T : null and 'T :> Azure.Data.Tables.ITableEntity)> (requires 'T : null and 'T :> Azure.Data.Tables.ITableEntity)
Public Overridable Function QueryAsync(Of T As {Class, ITableEntity}) (Optional filter As String = Nothing, Optional maxPerPage As Nullable(Of Integer) = Nothing, Optional select As IEnumerable(Of String) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of T)

型パラメーター

T

または のインスタンスTableEntityを実装するITableEntityカスタム モデル型。

パラメーター

filter
String

指定した OData フィルターを満たすエンティティのみを返します。 たとえば、次のフィルターでは、PartitionKey が 'foo' のエンティティをフィルター処理します。 "PartitionKey eq 'foo'"

maxPerPage
Nullable<Int32>

ページごとに返されるエンティティの最大数。 指定しない場合、ストレージ アカウントの既定値は 1000 であり、Cosmos DB テーブル API には制限されません。 注: 結果が完全に列挙されている場合、この値は結果の合計数を制限しません。

select
IEnumerable<String>

IEnumerable<T>結果セットで返すエンティティ プロパティのセットを選択するエンティティ プロパティ名の 。 たとえば、次の値は PartitionKey プロパティと RowKey プロパティのみを返します。 new[] { "PartitionKey, RowKey"}

cancellationToken
CancellationToken

CancellationToken要求の有効期間を制御する 。

戻り値

AsyncPageable<T>Tとしてシリアル化されたエンティティ モデルのコレクションを格納している 。

例外

サーバーからエラーが返されました。 サーバーから返される詳細については、「」を参照してください Message

適用対象