IDocumentClient.CreatePermissionQuery Method

Definition

Overloads

CreatePermissionQuery(Uri, String, FeedOptions)

Method to create a query for permissions in the Azure DocumentDB database service.

CreatePermissionQuery(String, FeedOptions)

Overloaded. This method creates a query for permissions under a user in the Azure DocumentDB database service. It returns IOrderedQueryable{Permission}.

CreatePermissionQuery(Uri, FeedOptions)

Method to create a query for permissions in the Azure DocumentDB database service.

CreatePermissionQuery(String, SqlQuerySpec, FeedOptions)

Overloaded. This method creates a query for permissions under a user in the Azure DocumentDB database service using a SQL statement with parameterized values. It returns an IQueryable{dynamic}. For more information on preparing SQL statements with parameterized values, please see SqlQuerySpec.

CreatePermissionQuery(String, String, FeedOptions)

Overloaded. This method creates a query for permissions under a user in the Azure DocumentDB database service using a SQL statement. It returns IQueryable{dynamic}.

CreatePermissionQuery(Uri, SqlQuerySpec, FeedOptions)

Method to create a query for permissions in the Azure DocumentDB database service.

CreatePermissionQuery(Uri, String, FeedOptions)

Method to create a query for permissions in the Azure DocumentDB database service.

public System.Linq.IQueryable<dynamic> CreatePermissionQuery (Uri userUri, string sqlExpression, Microsoft.Azure.Documents.Client.FeedOptions feedOptions = null);
Parameters
userUri
Uri

The URI of the parent user.

sqlExpression
String

The sql query.

feedOptions
FeedOptions

(Optional) The FeedOptions for processing the query results feed.

Returns

The query result set.

CreatePermissionQuery(String, FeedOptions)

Overloaded. This method creates a query for permissions under a user in the Azure DocumentDB database service. It returns IOrderedQueryable{Permission}.

public System.Linq.IOrderedQueryable<Microsoft.Azure.Documents.Permission> CreatePermissionQuery (string permissionsLink, Microsoft.Azure.Documents.Client.FeedOptions feedOptions = null);
Parameters
permissionsLink
String

The path link for the persmissions under a user, e.g. dbs/db_rid/users/user_rid/permissions/.

feedOptions
FeedOptions

The options for processing the query result feed. For details, see FeedOptions

Returns

An IOrderedQueryable{Permission} that can evaluate the query.

CreatePermissionQuery(Uri, FeedOptions)

Method to create a query for permissions in the Azure DocumentDB database service.

public System.Linq.IOrderedQueryable<Microsoft.Azure.Documents.Permission> CreatePermissionQuery (Uri userUri, Microsoft.Azure.Documents.Client.FeedOptions feedOptions = null);
Parameters
userUri
Uri

The URI of the parent user.

feedOptions
FeedOptions

(Optional) The FeedOptions for processing the query results feed.

Returns

The query result set.

CreatePermissionQuery(String, SqlQuerySpec, FeedOptions)

Overloaded. This method creates a query for permissions under a user in the Azure DocumentDB database service using a SQL statement with parameterized values. It returns an IQueryable{dynamic}. For more information on preparing SQL statements with parameterized values, please see SqlQuerySpec.

public System.Linq.IQueryable<dynamic> CreatePermissionQuery (string permissionsLink, Microsoft.Azure.Documents.SqlQuerySpec querySpec, Microsoft.Azure.Documents.Client.FeedOptions feedOptions = null);
Parameters
permissionsLink
String

The path link for the persmissions under a user, e.g. dbs/db_rid/users/user_rid/permissions/.

querySpec
SqlQuerySpec

The SqlQuerySpec instance containing the SQL expression.

feedOptions
FeedOptions

The options for processing the query result feed. For details, see FeedOptions

Returns

an IQueryable{dynamic} that can evaluate the query.

CreatePermissionQuery(String, String, FeedOptions)

Overloaded. This method creates a query for permissions under a user in the Azure DocumentDB database service using a SQL statement. It returns IQueryable{dynamic}.

public System.Linq.IQueryable<dynamic> CreatePermissionQuery (string permissionsLink, string sqlExpression, Microsoft.Azure.Documents.Client.FeedOptions feedOptions = null);
Parameters
permissionsLink
String

The path link for the persmissions under a user, e.g. dbs/db_rid/users/user_rid/permissions/.

sqlExpression
String

The SQL statement.

feedOptions
FeedOptions

The options for processing the query result feed. For details, see FeedOptions

Returns

an IQueryable{dynamic} that can evaluate the query.

CreatePermissionQuery(Uri, SqlQuerySpec, FeedOptions)

Method to create a query for permissions in the Azure DocumentDB database service.

public System.Linq.IQueryable<dynamic> CreatePermissionQuery (Uri userUri, Microsoft.Azure.Documents.SqlQuerySpec querySpec, Microsoft.Azure.Documents.Client.FeedOptions feedOptions = null);
Parameters
userUri
Uri

The URI of the parent user.

querySpec
SqlQuerySpec

The sql query.

feedOptions
FeedOptions

(Optional) The FeedOptions for processing the query results feed.

Returns

The query result set.