CloudTable.CreateQuery<TElement> 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.
A factory method that creates a query that can be modified using LINQ. The query may be subsequently executed using one of the execution methods available for CloudTable, such as ExecuteQuery(TableQuery, TableRequestOptions, OperationContext), ExecuteQuerySegmented(TableQuery, TableContinuationToken, TableRequestOptions, OperationContext), or ExecuteQuerySegmentedAsync(TableQuery, TableContinuationToken).
public virtual Microsoft.Azure.Cosmos.Table.TableQuery<TElement> CreateQuery<TElement> () where TElement : Microsoft.Azure.Cosmos.Table.ITableEntity, new();
abstract member CreateQuery : unit -> Microsoft.Azure.Cosmos.Table.TableQuery<'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.CreateQuery : unit -> Microsoft.Azure.Cosmos.Table.TableQuery<'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 CreateQuery(Of TElement As {ITableEntityNew}) () As TableQuery(Of TElement)
Type Parameters
- TElement
The entity type of the query.
Returns
A TableQuery object, specialized for type TElement
, that may subsequently be executed.
Remarks
The Microsoft.Azure.Cosmos.Table.Queryable namespace includes extension methods for the TableQuery object, including WithOptions, WithContext, and AsTableQuery. To use these methods, include a using
statement that references the Microsoft.Azure.Cosmos.Table.Queryable namespace.
Applies to
Azure SDK for .NET