DocumentServiceQueryable.CreateAttachmentQuery 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)

Syntax

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

returnValue = client.CreateAttachmentQuery(documentLink, _
    feedOptions)
public static IOrderedQueryable<Attachment> CreateAttachmentQuery(
    this DocumentClient client,
    string documentLink,
    FeedOptions feedOptions
)
[ExtensionAttribute]
public:
static IOrderedQueryable<Attachment^>^ CreateAttachmentQuery(
    DocumentClient^ client, 
    String^ documentLink, 
    FeedOptions^ feedOptions
)
static member CreateAttachmentQuery : 
        client:DocumentClient * 
        documentLink:string * 
        feedOptions:FeedOptions -> IOrderedQueryable<Attachment> 
public static function CreateAttachmentQuery(
    client : DocumentClient, 
    documentLink : String, 
    feedOptions : FeedOptions
) : IOrderedQueryable<Attachment>

Parameters

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

Return Value

Type: System.Linq.IOrderedQueryable<Attachment>
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 https://msdn.microsoft.com/en-us/library/bb384936(v=azure.100) or https://msdn.microsoft.com/en-us/library/bb383977(v=azure.100).

See Also

Reference

DocumentServiceQueryable Class

CreateAttachmentQuery Overload

Microsoft.Azure.Documents.Linq Namespace