LumiSoft Net Help
Search Method (uid, charset, criteria)
NamespacesLumiSoft.Net.IMAP.ClientIMAP_ClientSearch(Boolean, String, String)
Searches message what matches specified search criteria.
Declaration Syntax
C#Visual BasicVisual C++F#
[ObsoleteAttribute("Use Search(bool uid,Encoding charset,IMAP_Search_Key criteria) instead.")]
public int[] Search(
	bool uid,
	string charset,
	string criteria
)
<ObsoleteAttribute("Use Search(bool uid,Encoding charset,IMAP_Search_Key criteria) instead.")>
Public Function Search ( 
	uid As Boolean,
	charset As String,
	criteria As String
) As Integer()
public:
[ObsoleteAttribute(L"Use Search(bool uid,Encoding charset,IMAP_Search_Key criteria) instead.")]
array<int>^ Search(
	bool uid, 
	String^ charset, 
	String^ criteria
)
[<ObsoleteAttribute("Use Search(bool uid,Encoding charset,IMAP_Search_Key criteria) instead.")>]
member Search : 
        uid : bool * 
        charset : string * 
        criteria : string -> int[] 
Parameters
uid (Boolean)
If true then UID SERACH, otherwise normal SEARCH.
charset (String)
Charset used in search criteria. Value null means ASCII. The UTF-8 is reccomended value non ASCII searches.
criteria (String)
Search criteria.
Return Value
array<Int32>[]()[][]
Returns search expression matehced messages sequence-numbers or UIDs(This depends on argument uid value).
Exceptions
ExceptionCondition
ArgumentNullExceptionIs rised when criteria is null reference.
ArgumentExceptionIs raised when any of the arguments has invalid value.
InvalidOperationExceptionIs raised when IMAP client is not in valid state(not-connected, not-authenticated or not-selected state).
IMAP_ClientExceptionIs raised when server refuses to complete this command and returns error.

Assembly: LumiSoft.Net (Module: LumiSoft.Net.dll) Version: 4.5.5510.19119