Search the current folder for messages that match the specified searching criteria.

Namespace:  Rebex.Net
Assembly:  Rebex.Imap (in Rebex.Imap.dll)

Syntax

Visual Basic
Public Function Search ( _
	ParamArray parameters As ImapSearchParameter() _
) As ImapMessageCollection
C#
public ImapMessageCollection Search(
	params ImapSearchParameter[] parameters
)

Parameters

parameters
Type: array<Rebex.Net..::..ImapSearchParameter>[]()[][]
Searching criteria.

Return Value

A collection of ImapMessageInfo objects that match the specified criteria.

Remarks

Searching criteria consist of one or more parameters. When multiple parameters are specified, the results is the intersection (AND) of all the messages that match.

The returned list will contain the envelope information about each message. To retrieve other information, use Search(ImapListFields, array<ImapSearchParameter>[]()[][]) method.

Version Information

.NET Compact Framework

Supported in: 3.9, 3.5

See Also