IdeaBlade.EntityModel.Server Assembly > IdeaBlade.EntityModel.Server Namespace > EntityServerQueryInterceptor Class : GetClientQueryPermission Method |
'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 )
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.
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