QueryType Class

Specifies the keywords to use for matching the entries in the store that is being searched. The value of the Query is used as a prefix-string matching pattern, and returns entries that match the beginning of the string. For example, searching for "John" would match "John Frum" or "Barry Johnson", but would not match "James Littlejohn". All nonempty text properties in the GAL that are indexed by using ANR are compared with the Query element value. Search comparisons are performed by using case-insensitive matching. For a Windows SharePoint Services document library search, this protocol supports queries of the following form: LinkId == value, where value specifies the URL of the item or folder and LinkId indicates that the value is to be compared to the link ID property. For mailbox search, the query syntax is as follows: - Folders can be specified in the following ways: Specified ID Specified folder and subfolders All email folders, including Draft, Inbox and subfolders, Outbox, and Sent Items - The basic keyword query can be composed of the following: The basic operator: And (section 2.2.3.10) A dateTime filter specified by using the GreaterThan (section 2.2.3.78) and LessThan elements (section 2.2.3.87) FreeText elements (section 2.2.3.73) that contain keywords The basic keyword query is executed against all indexed properties.
Inheritance Hierarchy
SystemObject
  Aspose.Email.Clients.ActiveSync.TransportLayerQueryType

Namespace:  Aspose.Email.Clients.ActiveSync.TransportLayer
Assembly:  Aspose.Email (in Aspose.Email.dll) Version: 20.2
Syntax
public class QueryType

The QueryType type exposes the following members.

Constructors
  NameDescription
Public methodQueryType
Initializes a new instance of the QueryType class
Properties
  NameDescription
Public propertyClass
Identifies the class of the item. The valid airsync:Class element values are: - Tasks - Email - Calendar - Contacts - Notes - SMS The following classes are supported for mailbox searches when the protocol version is 12.1: Email, Calendar, Contacts, Tasks. The SMS and Notes classes are only available if the protocol version is 14.0 or 14.1. The Search request can include one or more Class elements in the request to limit the type of data included in the Search response. If one or more Class elements are not included in the Search request, the server will return all supported classes. If the Class is included as a child of any element other than the And element, the server responds with a Status value of 8 (SearchTooComplex).
Public propertyCollectionId
Specifies the folder in which to search. If the DeepTraversal is present, it applies to all folders under each CollectionId. If the CollectionId is included as a child of any element other than And, the server responds with a Status value of 8 (SearchTooComplex).
Public propertyConversationId
Specifies the conversation for which to search. The value is a GUID. The ConversationId is not supported when the protocol version is 12.1. If the ConversationId is included as a child of any element other than the And element, the server responds with a Status value of 8 (SearchTooComplex).
Public propertyFreeText
Specifies a string value for which to search. If the FreeText property is set other than the And property, the server responds with a Status value of 8 (SearchTooComplex).
Public propertyGreaterThan
Specifies a property and a value that are compared for a 'Greater than' conditions during a search.
Public propertyLessThan
Specifies a property and a value that are compared for a 'Less than' conditions during a search.
Methods
  NameDescription
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)
See Also