IdeaBlade DevForce 2010 Help Reference
GetClientQueryPermission Method
See Also  Send Feedback
IdeaBlade.EntityModel.Server Assembly > IdeaBlade.EntityModel.Server Namespace > EntityServerQueryInterceptor Class : GetClientQueryPermission Method



entityQuery
Returns the permissions granted for this query and for this principal.

Syntax

Visual Basic (Declaration) 
Protected Overridable Function GetClientQueryPermission( _
   ByVal entityQuery As EntityQuery _
) As ClientQueryPermissions
Visual Basic (Usage)Copy Code
Dim instance As EntityServerQueryInterceptor
Dim entityQuery As EntityQuery
Dim value As ClientQueryPermissions
 
value = instance.GetClientQueryPermission(entityQuery)
C# 
protected virtual ClientQueryPermissions GetClientQueryPermission( 
   EntityQuery entityQuery
)
C++/CLI 
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 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2013 All Rights Reserved.