LumiSoft Net Help
Search Method (uid, charset, criteria)
Namespaces ► LumiSoft.Net.IMAP.Client ► IMAP_Client ► Search(Boolean, String, String)
Searches message what matches specified search criteria.
Declaration Syntax

C# | Visual Basic | Visual 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

Exception | Condition
--- | ---
ArgumentNullException | Is rised when criteria is null reference.
ArgumentException | Is raised when any of the arguments has invalid value.
InvalidOperationException | Is raised when IMAP client is not in valid state(not-connected, not-authenticated or not-selected state).
IMAP_ClientException | Is raised when server refuses to complete this command and returns error.

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