DevForce Help Reference
GetClientQueryPermission Method


Returns the permissions granted for this query and for this principal.
Syntax
'Declaration
 
Protected Overridable Function GetClientQueryPermission( _
   ByVal entityQuery As EntityQuery _
) As ClientQueryPermissions
'Usage
 
Dim instance As EntityServerQueryInterceptor
Dim entityQuery As EntityQuery
Dim value As ClientQueryPermissions
 
value = instance.GetClientQueryPermission(entityQuery)
protected virtual ClientQueryPermissions GetClientQueryPermission( 
   EntityQuery entityQuery
)

Parameters

entityQuery
Remarks
Checks for any IdeaBlade.EntityModel.ClientQueryPermissionsAttribute defined on either the entity or the named query.

If the query is a named query then any attributes defined on it will be used to authorize the user for the query.

If no attributes are defined on the named query, or it's not a named query, then the entity type of the query is used to check the client query permissions.

If no client query permission attributes are specified then the DefaultClientQueryPermissions value is used.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

EntityServerQueryInterceptor Class
EntityServerQueryInterceptor Members

Send Feedback