DocumentQueryable.CreateAttachmentQuery Method (DocumentClient, String, FeedOptions)

Extension method to create a query for attachments.

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

Usage

'Usage
Dim client As DocumentClient
Dim attachmentsLink As String
Dim feedOptions As FeedOptions
Dim returnValue As IOrderedQueryable(Of T)

returnValue = DocumentQueryable.CreateAttachmentQuery(client, attachmentsLink, feedOptions)

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function CreateAttachmentQuery(Of T) ( _
    client As DocumentClient, _
    attachmentsLink As String, _
    <OptionalAttribute> Optional feedOptions As FeedOptions = Nothing _
) As IOrderedQueryable(Of T)
[ExtensionAttribute] 
public static IOrderedQueryable<T> CreateAttachmentQuery<T> (
    DocumentClient client,
    string attachmentsLink,
    [OptionalAttribute] FeedOptions feedOptions
)
[ExtensionAttribute] 
public:
generic<typename T>
static IOrderedQueryable<T>^ CreateAttachmentQuery (
    DocumentClient^ client, 
    String^ attachmentsLink, 
    [OptionalAttribute] FeedOptions^ feedOptions
)

GenericParameters

  • T
    The type of object to query.

Parameters

  • client
    The DocumentClient to use.
  • attachmentsLink
    The link to the attachments.
  • feedOptions
    The options for processing the query results feed.

Return Value

The query result set.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Vista, Windows 7, Windows Server 2008, Windows 8.1, Windows Server 2012 R2, Windows 8 and Windows Server 2012

Target Platforms

See Also

Reference

DocumentQueryable Class
DocumentQueryable Members
Microsoft.Azure.Documents.Linq Namespace