IdeaBlade DevForce 2010 Help Reference
QueryAttribute Class
Members  See Also  Send Feedback
IdeaBlade.Core Assembly > IdeaBlade.Core.DomainServices Namespace : QueryAttribute Class



Indicates that a method defined within a class marked as EnableClientAccess can be used in an EntityQuery.

Syntax

Visual Basic (Declaration) 
<AttributeUsageAttribute(ValidOn=AttributeTargets.Method, 
   AllowMultiple=False, 
   Inherited=True)>
Public NotInheritable Class QueryAttribute 
   Inherits System.Attribute
   Implements System.Runtime.InteropServices._Attribute 
Visual Basic (Usage)Copy Code
Dim instance As QueryAttribute
C# 
[AttributeUsageAttribute(ValidOn=AttributeTargets.Method, 
   AllowMultiple=false, 
   Inherited=true)]
public sealed class QueryAttribute : System.Attribute, System.Runtime.InteropServices._Attribute  
C++/CLI 
[AttributeUsageAttribute(ValidOn=AttributeTargets.Method, 
   AllowMultiple=false, 
   Inherited=true)]
public ref class QueryAttribute sealed : public System.Attribute, System.Runtime.InteropServices._Attribute  

Remarks

By default, all methods in an EnableClientAccess attributed class which begin with one of the following prefixes: "Get", "Fetch", "Find", "Query", "Retrieve", or "Select", and which return an IEnumerable<T> are discovered by DevForce. You only need to use this attribute to discover any method whose name does not begin with one of the above prefixes.

This API is beta and subject to change.

Inheritance Hierarchy

System.Object
   System.Attribute
      IdeaBlade.Core.DomainServices.QueryAttribute

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.