Imap.SearchAsync Method
Namespace: Rebex.Net
Assembly: Rebex.Imap.dll (version 7.0.9119)
SearchAsync(ImapMessageSet, ImapListFields, ImapPageView, ImapSearchParameter[], Object)
Begins asynchronous Search operation. Search the current folder for messages that match the specified searching criteria.
Declaration
public Task<ImapMessageCollection> SearchAsync(ImapMessageSet messageSet, ImapListFields fields, ImapPageView pageView, ImapSearchParameter[] parameters, object state = null)
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. |
Object | state | An optional user-provided object that identifies this particular asynchronous operation. |
Returns
Type | Description |
---|---|
Task<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.
SearchAsync(ImapMessageSet, ImapListFields, ImapSearchParameter[], Object)
Begins asynchronous Search operation. Search the current folder for messages that match the specified searching criteria.
Declaration
public Task<ImapMessageCollection> SearchAsync(ImapMessageSet messageSet, ImapListFields fields, ImapSearchParameter[] parameters, object state = null)
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. |
Object | state | An optional user-provided object that identifies this particular asynchronous operation. |
Returns
Type | Description |
---|---|
Task<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.
SearchAsync(ImapListFields, ImapSearchParameter[], Object)
Begins asynchronous Search operation. Search the current folder for messages that match the specified searching criteria.
Declaration
public Task<ImapMessageCollection> SearchAsync(ImapListFields fields, ImapSearchParameter[] parameters, object state = null)
Parameters
Type | Name | Description |
---|---|---|
ImapListFields | fields | Specifies the scope of information to determine about each message. |
ImapSearchParameter[] | parameters | Searching criteria. |
Object | state | An optional user-provided object that identifies this particular asynchronous operation. |
Returns
Type | Description |
---|---|
Task<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.