DocumentServiceQueryable.CreateAttachmentQuery<T> Method (DocumentClient, String, FeedOptions)

Creates and returns a query for attachments.

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


<ExtensionAttribute> _
Public Shared Function CreateAttachmentQuery(Of T) ( _
    client As DocumentClient, _
    documentLink As String, _
    feedOptions As FeedOptions _
) As IOrderedQueryable(Of T)
Dim client As DocumentClient 
Dim documentLink As String 
Dim feedOptions As FeedOptions 
Dim returnValue As IOrderedQueryable(Of T)

returnValue = client.CreateAttachmentQuery(documentLink, _
public static IOrderedQueryable<T> CreateAttachmentQuery<T>(
    this DocumentClient client,
    string documentLink,
    FeedOptions feedOptions
generic<typename T>
static IOrderedQueryable<T>^ CreateAttachmentQuery(
    DocumentClient^ client, 
    String^ documentLink, 
    FeedOptions^ feedOptions
static member CreateAttachmentQuery : 
        client:DocumentClient * 
        documentLink:string * 
        feedOptions:FeedOptions -> IOrderedQueryable<'T> 
JScript does not support generic types and methods.

Type Parameters

  • T
    The type of object to query.


  • documentLink
    Type: System.String
    The self-link to the document.

Return Value

Type: System.Linq.IOrderedQueryable<T>
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 DocumentClient. When you use instance method syntax to call this method, omit the first parameter. For more information, see or

See Also


DocumentServiceQueryable Class

CreateAttachmentQuery Overload

Microsoft.Azure.Documents.Linq Namespace