TableServiceClient.QueryAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
QueryAsync(FormattableString, Nullable<Int32>, CancellationToken) |
Gets a list of tables from the storage account. |
QueryAsync(Expression<Func<TableItem,Boolean>>, Nullable<Int32>, CancellationToken) |
Gets a list of tables from the storage account. |
QueryAsync(String, Nullable<Int32>, CancellationToken) |
Gets a list of tables from the storage account. |
QueryAsync(FormattableString, Nullable<Int32>, CancellationToken)
- Source:
- TableServiceClient.cs
Gets a list of tables from the storage account.
public virtual Azure.AsyncPageable<Azure.Data.Tables.Models.TableItem> QueryAsync (FormattableString filter, int? maxPerPage = default, System.Threading.CancellationToken cancellationToken = default);
abstract member QueryAsync : FormattableString * Nullable<int> * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.Data.Tables.Models.TableItem>
override this.QueryAsync : FormattableString * Nullable<int> * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.Data.Tables.Models.TableItem>
Public Overridable Function QueryAsync (filter As FormattableString, Optional maxPerPage As Nullable(Of Integer) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of TableItem)
Parameters
- filter
- FormattableString
Returns only tables that satisfy the specified filter expression.
For example, the following would filter tables with a Name of 'foo': "TableName eq {someStringVariable}"
.
The filter string will be properly quoted and escaped.
The maximum number of entities that will be returned per page. Note: This value does not limit the total number of results if the result is fully enumerated.
- cancellationToken
- CancellationToken
A CancellationToken controlling the request lifetime.
Returns
An AsyncPageable<T> containing a collection of TableItems.
Exceptions
The server returned an error. See Message for details returned from the server.
Applies to
QueryAsync(Expression<Func<TableItem,Boolean>>, Nullable<Int32>, CancellationToken)
- Source:
- TableServiceClient.cs
Gets a list of tables from the storage account.
public virtual Azure.AsyncPageable<Azure.Data.Tables.Models.TableItem> QueryAsync (System.Linq.Expressions.Expression<Func<Azure.Data.Tables.Models.TableItem,bool>> filter, int? maxPerPage = default, System.Threading.CancellationToken cancellationToken = default);
abstract member QueryAsync : System.Linq.Expressions.Expression<Func<Azure.Data.Tables.Models.TableItem, bool>> * Nullable<int> * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.Data.Tables.Models.TableItem>
override this.QueryAsync : System.Linq.Expressions.Expression<Func<Azure.Data.Tables.Models.TableItem, bool>> * Nullable<int> * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.Data.Tables.Models.TableItem>
Public Overridable Function QueryAsync (filter As Expression(Of Func(Of TableItem, Boolean)), Optional maxPerPage As Nullable(Of Integer) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of TableItem)
Parameters
- filter
- Expression<Func<TableItem,Boolean>>
Returns only tables that satisfy the specified filter expression.
For example, the following expression would filter tables with a Name of 'foo': e => e.Name == "foo"
.
The maximum number of entities that will be returned per page. Note: This value does not limit the total number of results if the result is fully enumerated.
- cancellationToken
- CancellationToken
A CancellationToken controlling the request lifetime.
Returns
An AsyncPageable<T> containing a collection of TableItems.
Exceptions
The server returned an error. See Message for details returned from the server.
Applies to
QueryAsync(String, Nullable<Int32>, CancellationToken)
- Source:
- TableServiceClient.cs
Gets a list of tables from the storage account.
public virtual Azure.AsyncPageable<Azure.Data.Tables.Models.TableItem> QueryAsync (string filter = default, int? maxPerPage = default, System.Threading.CancellationToken cancellationToken = default);
abstract member QueryAsync : string * Nullable<int> * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.Data.Tables.Models.TableItem>
override this.QueryAsync : string * Nullable<int> * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.Data.Tables.Models.TableItem>
Public Overridable Function QueryAsync (Optional filter As String = Nothing, Optional maxPerPage As Nullable(Of Integer) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of TableItem)
Parameters
- filter
- String
Returns only tables that satisfy the specified filter.
For example, the following would filter tables with a Name of 'foo': "TableName eq 'foo'"
.
The maximum number of tables that will be returned per page. Note: This value does not limit the total number of results if the result is fully enumerated.
- cancellationToken
- CancellationToken
A CancellationToken controlling the request lifetime.
Returns
An AsyncPageable<T> containing a collection of TableItems.