DocumentQueryable.CreateAttachmentQuery Method (DocumentClient, String, SqlQuerySpec, 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 querySpec As SqlQuerySpec
Dim feedOptions As FeedOptions
Dim returnValue As IQueryable(Of Object)

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

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function CreateAttachmentQuery ( _
    client As DocumentClient, _
    attachmentsLink As String, _
    querySpec As SqlQuerySpec, _
    <OptionalAttribute> Optional feedOptions As FeedOptions = Nothing _
) As IQueryable(Of Object)
[ExtensionAttribute] 
public static IQueryable<Object> CreateAttachmentQuery (
    DocumentClient client,
    string attachmentsLink,
    SqlQuerySpec querySpec,
    [OptionalAttribute] FeedOptions feedOptions
)
[ExtensionAttribute] 
public:
static IQueryable<Object^>^ CreateAttachmentQuery (
    DocumentClient^ client, 
    String^ attachmentsLink, 
    SqlQuerySpec^ querySpec, 
    [OptionalAttribute] FeedOptions^ feedOptions
)
/** @attribute ExtensionAttribute() */ 
public static IQueryable<Object> CreateAttachmentQuery (
    DocumentClient client, 
    String attachmentsLink, 
    SqlQuerySpec querySpec, 
    /** @attribute OptionalAttribute() */ FeedOptions feedOptions
)
ExtensionAttribute 
public static function CreateAttachmentQuery (
    client : DocumentClient, 
    attachmentsLink : String, 
    querySpec : SqlQuerySpec, 
    feedOptions : FeedOptions
) : IQueryable<Object>

Parameters

  • client
    The DocumentClient to use.
  • attachmentsLink
    The link to the attachments.
  • querySpec
    The SQL query.
  • 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