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)

public static IOrderedQueryable<Attachment> CreateAttachmentQuery(
	this DocumentClient client,
	string documentLink,
	FeedOptions feedOptions
)

Parameters

client
Type: Microsoft.Azure.Documents.Client.DocumentClient
The DocumentClient to use.
documentLink
Type: System.String
The self-link to the document.
feedOptions
Type: Microsoft.Azure.Documents.Client.FeedOptions
The options for processing the query results feed.

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.aspx or https://msdn.microsoft.com/en-us/library/bb383977.aspx.
Show: