DocumentServiceQueryable.AsJPath<TSource, TResult> Method (IOrderedQueryable<TSource>, String)

Creates and returns a JPATH query.

Namespace:  Microsoft.Azure.Documents.Linq
Assembly:  Microsoft.Azure.Documents.Client (in Microsoft.Azure.Documents.Client.dll)


<ExtensionAttribute> _
Public Shared Function AsJPath(Of TSource, TResult) ( _
    source As IOrderedQueryable(Of TSource), _
    jpathExpression As String _
) As IQueryable(Of TResult)
Dim source As IOrderedQueryable(Of TSource)
Dim jpathExpression As String 
Dim returnValue As IQueryable(Of TResult)

returnValue = source.AsJPath(jpathExpression)
public static IQueryable<TResult> AsJPath<TSource, TResult>(
    this IOrderedQueryable<TSource> source,
    string jpathExpression
generic<typename TSource, typename TResult>
static IQueryable<TResult>^ AsJPath(
    IOrderedQueryable<TSource>^ source, 
    String^ jpathExpression
static member AsJPath : 
        source:IOrderedQueryable<'TSource> * 
        jpathExpression:string -> IQueryable<'TResult> 
JScript does not support generic types and methods.

Type Parameters

  • TSource
    The source type.
  • TResult
    The result type.


Return Value

Type: System.Linq.IQueryable<TResult>
The query result set.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IOrderedQueryable<TSource>. When you use instance method syntax to call this method, omit the first parameter. For more information, see or

See Also


DocumentServiceQueryable Class

AsJPath Overload

Microsoft.Azure.Documents.Linq Namespace