Udostępnij za pośrednictwem


TableQueryableExtensions.WithContext<TElement> Method

Definition

Specifies an OperationContext for the query.

public static Microsoft.Azure.Cosmos.Table.TableQuery<TElement> WithContext<TElement> (this System.Linq.IQueryable<TElement> query, Microsoft.Azure.Cosmos.Table.OperationContext operationContext);
static member WithContext : System.Linq.IQueryable<'Element> * Microsoft.Azure.Cosmos.Table.OperationContext -> Microsoft.Azure.Cosmos.Table.TableQuery<'Element>
<Extension()>
Public Function WithContext(Of TElement) (query As IQueryable(Of TElement), operationContext As OperationContext) As TableQuery(Of TElement)

Type Parameters

TElement

The entity type of the query.

Parameters

query
IQueryable<TElement>

A query that implements IQueryable<T>.

operationContext
OperationContext

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

Returns

A TableQuery object with the specified operation context.

Exceptions

Applies to