DevForce Help Reference
AuthorizeQuery Method (EntityServerQueryInterceptor)


Override this method to intercept the query to provide custom authorization.
Syntax
'Declaration
 
Protected Overridable Function AuthorizeQuery() As Boolean
'Usage
 
Dim instance As EntityServerQueryInterceptor
Dim value As Boolean
 
value = instance.AuthorizeQuery()
protected virtual bool AuthorizeQuery()
Exceptions
ExceptionDescription
IdeaBlade.EntityModel.EntityServerExceptionThrown for authorization failure
Remarks
The default implementation first checks the IdeaBlade.EntityModel.ClientQueryPermissions for either the named query or the entity, and then calls ClientCanQuery for all types involved in the query to determine if the user is authorized. If not authorized an exception is thrown.
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