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



Override this method to intercept the query to provide custom authorization.

Syntax

Visual Basic (Declaration) 
Protected Overridable Function AuthorizeQuery() As Boolean
Visual Basic (Usage)Copy Code
Dim instance As EntityServerQueryInterceptor
Dim value As Boolean
 
value = instance.AuthorizeQuery()
C# 
protected virtual bool AuthorizeQuery()
C++/CLI 
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 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.