DocumentServiceQueryable.CreatePermissionQuery Method

Creates and returns a query for permissions.

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


<ExtensionAttribute> _
Public Shared Function CreatePermissionQuery ( _
    client As DocumentClient, _
    userLink As String, _
    feedOptions As FeedOptions _
) As IOrderedQueryable(Of Permission)
Dim client As DocumentClient 
Dim userLink As String 
Dim feedOptions As FeedOptions 
Dim returnValue As IOrderedQueryable(Of Permission)

returnValue = client.CreatePermissionQuery(userLink, _
public static IOrderedQueryable<Permission> CreatePermissionQuery(
    this DocumentClient client,
    string userLink,
    FeedOptions feedOptions
static IOrderedQueryable<Permission^>^ CreatePermissionQuery(
    DocumentClient^ client, 
    String^ userLink, 
    FeedOptions^ feedOptions
static member CreatePermissionQuery : 
        client:DocumentClient * 
        userLink:string * 
        feedOptions:FeedOptions -> IOrderedQueryable<Permission> 
public static function CreatePermissionQuery(
    client : DocumentClient, 
    userLink : String, 
    feedOptions : FeedOptions
) : IOrderedQueryable<Permission>


Return Value

Type: System.Linq.IOrderedQueryable<Permission>
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 or

See Also


DocumentServiceQueryable Class

Microsoft.Azure.Documents.Linq Namespace