| ImapSearchAsync Method (ICriterion) |
Namespace:
Limilabs.Client.IMAP
Assembly:
Mail (in Mail.dll) Version: 3.0.23341.1754
Syntax public Task<List<long>> SearchAsync(
ICriterion criterion
)
Public Function SearchAsync (
criterion As ICriterion
) As Task(Of List(Of Long))
public:
Task<List<long long>^>^ SearchAsync(
ICriterion^ criterion
)
member SearchAsync :
criterion : ICriterion -> Task<List<int64>>
Parameters
- criterion
- Type: Limilabs.Client.IMAPICriterion
Search criteria. Use And(ICriterion) to join several criterions.
Return Value
Type:
TaskListInt64UID list sorted from oldest to newest.
Examples
List<long> uids = imap.Search(Expression.And(Expression.Subject("report"), Expression.HasFlag(Flag.Unseen)));
See Also