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[]
Return Value
array<Int32>[]()[][]
Returns search expression matehced messages sequence-numbers or UIDs(This depends on argument uid value).
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