SearchQueryOlderThan Method

Match messages older than the specified number of seconds.

Definition

Namespace: MailKit.Search
Assembly: MailKit (in MailKit.dll) Version: 5.0.0
C#
public static NumericSearchQuery OlderThan(
	int seconds
)

Parameters

seconds  Int32
The number of seconds.

Return Value

NumericSearchQuery
A NumericSearchQuery.

Remarks

Matches messages older than the specified number of seconds.

  Note

This is equivalent to the OLDER search key as defined in rfc5032 and is therefor only available for use with IMAP servers that support the WITHIN extension.

Exceptions

ArgumentOutOfRangeException The number of seconds cannot be less than 1.

See Also