Aspose::Email::Tools::Search::DateComparisonField Class Referencefinal

Represents the date search field. More...

Inherits Aspose::Email::Tools::Search::ComparisonField.

Public Member Functions

 DateComparisonField (System::String fieldName, System::SharedPtr< MailQueryBuilder > owner)
 Initializes a new instance of the DateComparisonField class. More...
 
System::SharedPtr< MailQueryBefore (System::DateTime value)
 Indicates that the date in message must be earlier than the specified date. More...
 
System::SharedPtr< MailQueryBefore (System::DateTime value, DateComparisonType comparisonType)
 Indicates that the date in message must be earlier than the specified date. More...
 
System::SharedPtr< MailQueryBeforeOrEqual (System::DateTime value)
 Indicates that the date in message must be earlier or equel to the specified date. More...
 
System::SharedPtr< MailQueryBeforeOrEqual (System::DateTime value, DateComparisonType comparisonType)
 Indicates that the date in message must be earlier or equel to the specified date. More...
 
System::SharedPtr< MailQuerySince (System::DateTime value)
 Indicates that date in message must be within or later than the specified date. More...
 
System::SharedPtr< MailQueryGreater (System::DateTime value)
 Indicates that date in message must be later than the specified date. More...
 
System::SharedPtr< MailQueryGreater (System::DateTime value, DateComparisonType comparisonType)
 Indicates that date in message must be later than the specified date. More...
 
System::SharedPtr< MailQuerySince (System::DateTime value, DateComparisonType comparisonType)
 Indicates that date in message must be within or later than the specified date. More...
 
System::SharedPtr< MailQueryOn (System::DateTime value)
 Indicates that the date in message must be within the specified date. More...
 
System::SharedPtr< MailQueryOn (System::DateTime value, DateComparisonType comparisonType)
 Indicates that the date in message must be within the specified date. More...
 
System::SharedPtr< MailQueryNotOn (System::DateTime value)
 Indicates that the date in message must not be in the specified date. More...
 
System::SharedPtr< MailQueryNotOn (System::DateTime value, DateComparisonType comparisonType)
 Indicates that the date in message must not be in the specified date. More...
 
- Public Member Functions inherited from Aspose::Email::Tools::Search::ComparisonField
void OrderBy (bool ascending)
 Sets value which indicates if client uses ascending or descending sorting on the Field. More...
 
System::SharedPtr< MailQueryExists (bool value)
 

Friends

class Aspose::Email::Clients::Exchange::ExtendedPropertiesComparisonField
 
class Aspose::Email::Clients::Exchange::AppointmentQueryBuilder
 
class Aspose::Email::Clients::Exchange::ContactQueryBuilder
 
class Aspose::Email::Tools::Search::MailQueryBuilder
 

Additional Inherited Members

- Protected Member Functions inherited from Aspose::Email::Tools::Search::ComparisonField
 ComparisonField (System::String fieldName, System::SharedPtr< MailQueryBuilder > owner)
 Initializes a new instance of the ComparisonField class. More...
 
virtual System::SharedPtr< MailQueryCreateKey (System::String name, System::String value, System::String comparsionOperator)
 Creates the search key. More...
 
System::SharedPtr< MailQueryCreateKey (System::String name, System::SharedPtr< System::BoxedValueBase > value, System::String comparsionOperator)
 Creates the search key. More...
 
- Protected Member Functions inherited from Aspose::Email::Tools::Search::QueryField
 QueryField (System::String fieldName, System::SharedPtr< MailQueryBuilder > owner)
 Initializes a new instance of the ComparisonField class. More...
 
- Protected Attributes inherited from Aspose::Email::Tools::Search::QueryField
System::String FieldName
 Field Name. More...
 
System::SharedPtr< MailQueryBuilderowner
 Owner of this object. More...
 

Detailed Description

Represents the date search field.

Constructor & Destructor Documentation

◆ DateComparisonField()

Aspose::Email::Tools::Search::DateComparisonField::DateComparisonField ( System::String  fieldName,
System::SharedPtr< MailQueryBuilder owner 
)

Initializes a new instance of the DateComparisonField class.

Parameters
fieldNameName of the field.
ownerOwner of ComparisonField field object.

Member Function Documentation

◆ Before() [1/2]

System::SharedPtr<MailQuery> Aspose::Email::Tools::Search::DateComparisonField::Before ( System::DateTime  value)

Indicates that the date in message must be earlier than the specified date.

Parameters
valueThe value.
Returns
MailQuery that represents search query (one searching criterion).

◆ Before() [2/2]

System::SharedPtr<MailQuery> Aspose::Email::Tools::Search::DateComparisonField::Before ( System::DateTime  value,
DateComparisonType  comparisonType 
)

Indicates that the date in message must be earlier than the specified date.

Parameters
valueThe value.
comparisonTypeSpecifies a type of comparison
Returns
MailQuery that represents search query (one searching criterion).

◆ BeforeOrEqual() [1/2]

System::SharedPtr<MailQuery> Aspose::Email::Tools::Search::DateComparisonField::BeforeOrEqual ( System::DateTime  value)

Indicates that the date in message must be earlier or equel to the specified date.

Parameters
valueThe value.
Returns
MailQuery that represents search query (one searching criterion).

◆ BeforeOrEqual() [2/2]

System::SharedPtr<MailQuery> Aspose::Email::Tools::Search::DateComparisonField::BeforeOrEqual ( System::DateTime  value,
DateComparisonType  comparisonType 
)

Indicates that the date in message must be earlier or equel to the specified date.

Parameters
valueThe value.
comparisonTypeSpecifies a type of comparison
Returns
MailQuery that represents search query (one searching criterion).

◆ Greater() [1/2]

System::SharedPtr<MailQuery> Aspose::Email::Tools::Search::DateComparisonField::Greater ( System::DateTime  value)

Indicates that date in message must be later than the specified date.

Parameters
valueThe value.
Returns
MailQuery that represents search query (one searching criterion).

◆ Greater() [2/2]

System::SharedPtr<MailQuery> Aspose::Email::Tools::Search::DateComparisonField::Greater ( System::DateTime  value,
DateComparisonType  comparisonType 
)

Indicates that date in message must be later than the specified date.

Parameters
valueThe value.
comparisonTypeSpecifies a type of comparison
Returns
MailQuery that represents search query (one searching criterion).

◆ NotOn() [1/2]

System::SharedPtr<MailQuery> Aspose::Email::Tools::Search::DateComparisonField::NotOn ( System::DateTime  value)

Indicates that the date in message must not be in the specified date.

Parameters
valueThe value.
Returns
MailQuery that represents search query (one searching criterion).

◆ NotOn() [2/2]

System::SharedPtr<MailQuery> Aspose::Email::Tools::Search::DateComparisonField::NotOn ( System::DateTime  value,
DateComparisonType  comparisonType 
)

Indicates that the date in message must not be in the specified date.

Parameters
valueThe value.
comparisonTypeSpecifies a type of comparison
Returns
MailQuery that represents search query (one searching criterion).

◆ On() [1/2]

System::SharedPtr<MailQuery> Aspose::Email::Tools::Search::DateComparisonField::On ( System::DateTime  value)

Indicates that the date in message must be within the specified date.

Parameters
valueThe value.
Returns
MailQuery that represents search query (one searching criterion).

◆ On() [2/2]

System::SharedPtr<MailQuery> Aspose::Email::Tools::Search::DateComparisonField::On ( System::DateTime  value,
DateComparisonType  comparisonType 
)

Indicates that the date in message must be within the specified date.

Parameters
valueThe value.
comparisonTypeSpecifies a type of comparison
Returns
MailQuery that represents search query (one searching criterion).

◆ Since() [1/2]

System::SharedPtr<MailQuery> Aspose::Email::Tools::Search::DateComparisonField::Since ( System::DateTime  value)

Indicates that date in message must be within or later than the specified date.

Parameters
valueThe value.
Returns
MailQuery that represents search query (one searching criterion).

◆ Since() [2/2]

System::SharedPtr<MailQuery> Aspose::Email::Tools::Search::DateComparisonField::Since ( System::DateTime  value,
DateComparisonType  comparisonType 
)

Indicates that date in message must be within or later than the specified date.

Parameters
valueThe value.
comparisonTypeSpecifies a type of comparison
Returns
MailQuery that represents search query (one searching criterion).

Friends And Related Function Documentation

◆ Aspose::Email::Clients::Exchange::AppointmentQueryBuilder

◆ Aspose::Email::Clients::Exchange::ContactQueryBuilder

◆ Aspose::Email::Clients::Exchange::ExtendedPropertiesComparisonField

◆ Aspose::Email::Tools::Search::MailQueryBuilder