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 T)
returnValue = DocumentQueryable.CreateAttachmentQuery(client, attachmentsLink, querySpec, feedOptions)
Syntax
'Declaration
<ExtensionAttribute> _
Public Shared Function CreateAttachmentQuery(Of T) ( _
client As DocumentClient, _
attachmentsLink As String, _
querySpec As SqlQuerySpec, _
<OptionalAttribute> Optional feedOptions As FeedOptions = Nothing _
) As IQueryable(Of T)
[ExtensionAttribute]
public static IQueryable<T> CreateAttachmentQuery<T> (
DocumentClient client,
string attachmentsLink,
SqlQuerySpec querySpec,
[OptionalAttribute] FeedOptions feedOptions
)
[ExtensionAttribute]
public:
generic<typename T>
static IQueryable<T>^ CreateAttachmentQuery (
DocumentClient^ client,
String^ attachmentsLink,
SqlQuerySpec^ querySpec,
[OptionalAttribute] FeedOptions^ feedOptions
)
GenericParameters
- T
The type of object to query.
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