Click or drag to resize
MimeKit

SearchQueryYoungerThan Method

Match messages younger than the specified number of seconds.

Namespace: MailKit.Search
Assembly: MailKit (in MailKit.dll) Version: 4.7.1
Syntax
C#
public static NumericSearchQuery YoungerThan(
	int seconds
)

Parameters

seconds  Int32
The number of seconds.

Return Value

NumericSearchQuery
A NumericSearchQuery.
Exceptions
ExceptionCondition
ArgumentOutOfRangeException The number of seconds cannot be less than 1.
Remarks

Matches messages younger than the specified number of seconds.

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