Aspose::Email::Clients::Exchange::ExchangeAdvancedSyntaxMailQuery Class Reference

Represents the search criteria, that are used to match several message properties in the mailbox. Implements an Advanced Query Syntax (AQS) search that is used by EWS. AQS described at https://docs.microsoft.com/exchange/client-developer/exchange-web-services/how-to-perform-an-aqs-search-by-using-ews-in-exchange. More...

Inherits Aspose::Email::Tools::Search::MailQuery.

Public Member Functions

System::String get_QueryString () override
 The query string. More...
 
void set_QueryString (System::String value) override
 The query string. More...
 
 ExchangeAdvancedSyntaxMailQuery (System::String advancedSyntaxQueryString)
 Initializes a new instance of the ExchangeAdvancedSyntaxMailQuery class. More...
 
 ExchangeAdvancedSyntaxMailQuery (System::String queryString, bool validate)
 Initializes a new instance of the ExchangeAdvancedSyntaxMailQuery class. More...
 
void ReadXml (System::SharedPtr< System::Xml::XmlReader > reader) override
 Generates an object from its XML representation. Not implemented for the ExchangeAdvancedMailQuery class. More...
 
void WriteXml (System::SharedPtr< System::Xml::XmlWriter > writer) override
 Converts an object into its XML representation. Not implemented for the ExchangeAdvancedMailQuery class. More...
 
System::String ToString () const override
 Returns a System::String that represents this instance. More...
 
- Public Member Functions inherited from Aspose::Email::Tools::Search::MailQuery
System::String get_OrderByString () const
 The sort query string. More...
 
virtual System::SharedPtr< System::Collections::Generic::Dictionary< System::String, System::SharedPtr< System::Object > > > get_Options ()
 The query options. More...
 
virtual void set_Options (System::SharedPtr< System::Collections::Generic::Dictionary< System::String, System::SharedPtr< System::Object >>> value)
 The query options. More...
 
 MailQuery (System::String queryString)
 Initializes a new instance of the MailQuery class. More...
 
 MailQuery (System::String queryString, System::String orderByString)
 Initializes a new instance of the MailQuery class. More...
 
 MailQuery ()
 Initializes a new instance of the MailQuery class. More...
 
 MailQuery (System::String queryString, bool validate)
 Initializes a new instance of the MailQuery class. More...
 
 MailQuery (System::String queryString, System::String orderByString, bool validate)
 Initializes a new instance of the MailQuery class. More...
 
 MailQuery (System::String queryString, System::String orderByString, System::SharedPtr< System::Collections::Generic::Dictionary< System::String, System::SharedPtr< System::Object >>> options, bool validate)
 
 MailQuery (System::String fieldName, System::String value, System::String comparsionOperator)
 Initializes a new instance of the MailQuery class. More...
 
 MailQuery (System::String fieldName, System::String value, System::String comparsionOperator, System::String parameters)
 Initializes a new instance of the MailQuery class. More...
 
System::SharedPtr< System::Xml::Schema::XmlSchema > GetSchema ()
 This method is reserved and should not be used. When implementing the IXmlSerializable interface, you should return null (Nothing in Visual Basic) from this method, and instead, if specifying a custom schema is required, apply the T:System::Xml::Serialization::XmlSchemaProviderAttribute to the class. More...
 
virtual void WriteOrderByXml (System::SharedPtr< System::Xml::XmlWriter > writer)
 Converts an object into its XML representation. More...
 
bool Equals (System::SharedPtr< MailQuery > other) override
 Indicates whether the current object is equal to another object of the same type. More...
 
int32_t GetHashCode () const override
 Returns a hash code for this instance. More...
 
bool Equals (System::SharedPtr< System::Object > obj) override
 Determines whether the specified System::Object, is equal to this instance. More...
 
System::String ToString () const override
 Returns a System::String that represents this instance. More...
 

Friends

class Aspose::Email::Clients::Exchange::ExchangeAdvancedSyntaxQueryBuilder
 
class Aspose::Email::Clients::Exchange::WebService::Implementation::Items::List::Helpers::ListItemsProcessor
 

Additional Inherited Members

- Static Public Member Functions inherited from Aspose::Email::Tools::Search::MailQuery
static bool ValidateExpression (System::String expression)
 Validates the expression. More...
 
static System::String NormalizeExpression (System::String expression)
 Normalizes the expression. More...
 
- Protected Member Functions inherited from Aspose::Email::Tools::Search::MailQuery
virtual ~MailQuery ()
 

Detailed Description

Represents the search criteria, that are used to match several message properties in the mailbox. Implements an Advanced Query Syntax (AQS) search that is used by EWS. AQS described at https://docs.microsoft.com/exchange/client-developer/exchange-web-services/how-to-perform-an-aqs-search-by-using-ews-in-exchange.

See also
Aspose::Email::Tools::Search::MailQuery

Constructor & Destructor Documentation

◆ ExchangeAdvancedSyntaxMailQuery() [1/2]

Aspose::Email::Clients::Exchange::ExchangeAdvancedSyntaxMailQuery::ExchangeAdvancedSyntaxMailQuery ( System::String  advancedSyntaxQueryString)

Initializes a new instance of the ExchangeAdvancedSyntaxMailQuery class.

Parameters
advancedSyntaxQueryStringThe advanced syntax query string.

◆ ExchangeAdvancedSyntaxMailQuery() [2/2]

Aspose::Email::Clients::Exchange::ExchangeAdvancedSyntaxMailQuery::ExchangeAdvancedSyntaxMailQuery ( System::String  queryString,
bool  validate 
)

Initializes a new instance of the ExchangeAdvancedSyntaxMailQuery class.

Parameters
queryStringThe query string.
validateIf true, then query string must be validate.

Member Function Documentation

◆ get_QueryString()

System::String Aspose::Email::Clients::Exchange::ExchangeAdvancedSyntaxMailQuery::get_QueryString ( )
overridevirtual

The query string.

Reimplemented from Aspose::Email::Tools::Search::MailQuery.

◆ ReadXml()

void Aspose::Email::Clients::Exchange::ExchangeAdvancedSyntaxMailQuery::ReadXml ( System::SharedPtr< System::Xml::XmlReader >  reader)
overridevirtual

Generates an object from its XML representation. Not implemented for the ExchangeAdvancedMailQuery class.

Parameters
readerThe T:System::Xml::XmlReader stream from which the object is deserialized.
Exceptions
NotImplementedExceptionThrows when this method is invoked. This method is not implemented for ExchangeAdvancedMailQuery class.

Reimplemented from Aspose::Email::Tools::Search::MailQuery.

◆ set_QueryString()

void Aspose::Email::Clients::Exchange::ExchangeAdvancedSyntaxMailQuery::set_QueryString ( System::String  value)
overridevirtual

The query string.

Reimplemented from Aspose::Email::Tools::Search::MailQuery.

◆ ToString()

System::String Aspose::Email::Clients::Exchange::ExchangeAdvancedSyntaxMailQuery::ToString ( ) const
override

Returns a System::String that represents this instance.

Returns
A query string that represents this instance.

◆ WriteXml()

void Aspose::Email::Clients::Exchange::ExchangeAdvancedSyntaxMailQuery::WriteXml ( System::SharedPtr< System::Xml::XmlWriter >  writer)
overridevirtual

Converts an object into its XML representation. Not implemented for the ExchangeAdvancedMailQuery class.

Parameters
writerThe T:System::Xml::XmlWriter stream to which the object is serialized.

///

Exceptions
NotImplementedExceptionThrows when this method is invoked. This method is not implemented for ExchangeAdvancedMailQuery class.

Reimplemented from Aspose::Email::Tools::Search::MailQuery.

Friends And Related Function Documentation

◆ Aspose::Email::Clients::Exchange::ExchangeAdvancedSyntaxQueryBuilder

◆ Aspose::Email::Clients::Exchange::WebService::Implementation::Items::List::Helpers::ListItemsProcessor

friend class Aspose::Email::Clients::Exchange::WebService::Implementation::Items::List::Helpers::ListItemsProcessor
friend