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 ( _
	fields As ImapListFields, _
	ParamArray parameters As ImapSearchParameter() _
) As ImapMessageCollection
C#
public ImapMessageCollection Search(
	ImapListFields fields,
	params ImapSearchParameter[] parameters
)

Parameters

fields
Type: Rebex.Net..::..ImapListFields
Specifies the scope of information to determine about each message.
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.

Version Information

.NET Compact Framework

Supported in: 3.9, 3.5

See Also