Rebex
Products Downloads Buy Support Contact
Show / Hide Table of Contents

Imap.Search Method

Namespace: Rebex.Net
Assembly: Rebex.Imap.dll (version 7.0.9147)

Search(ImapMessageSet, ImapListFields, ImapPageView, ImapSearchParameter[])

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

Declaration
public ImapMessageCollection Search(ImapMessageSet messageSet, ImapListFields fields, ImapPageView pageView, params ImapSearchParameter[] parameters)
Parameters
Type Name Description
ImapMessageSet messageSet

A set of messages to be searched.

ImapListFields fields

Specifies the scope of information to determine about each message.

ImapPageView pageView

Paging definition. Only supported by servers that support the PARTIAL extension.

ImapSearchParameter[] parameters

Searching criteria.

Returns
Type Description
ImapMessageCollection

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.

Search(ImapMessageSet, ImapListFields, ImapSearchParameter[])

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

Declaration
public ImapMessageCollection Search(ImapMessageSet messageSet, ImapListFields fields, params ImapSearchParameter[] parameters)
Parameters
Type Name Description
ImapMessageSet messageSet

A set of messages to be searched.

ImapListFields fields

Specifies the scope of information to determine about each message.

ImapSearchParameter[] parameters

Searching criteria.

Returns
Type Description
ImapMessageCollection

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.

Search(ImapListFields, ImapSearchParameter[])

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

Declaration
public ImapMessageCollection Search(ImapListFields fields, params ImapSearchParameter[] parameters)
Parameters
Type Name Description
ImapListFields fields

Specifies the scope of information to determine about each message.

ImapSearchParameter[] parameters

Searching criteria.

Returns
Type Description
ImapMessageCollection

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.

Search(ImapSearchParameter[])

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

Declaration
public ImapMessageCollection Search(params ImapSearchParameter[] parameters)
Parameters
Type Name Description
ImapSearchParameter[] parameters

Searching criteria.

Returns
Type Description
ImapMessageCollection

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, ImapSearchParameter[]) method.

In This Article
  • Search(ImapMessageSet, ImapListFields, ImapPageView, ImapSearchParameter[])
  • Search(ImapMessageSet, ImapListFields, ImapSearchParameter[])
  • Search(ImapListFields, ImapSearchParameter[])
  • Search(ImapSearchParameter[])
© REBEX ČR s.r.o. Back to top
Privacy policy
Manage cookies