Stores specified message to the specified folder.
Declaration Syntax
C# | Visual Basic | Visual C++ | F# |
[ObsoleteAttribute("Use method StoreMessage(string folder,IMAP_t_MsgFlags flags,DateTime internalDate,Stream message,int count) instead.")] public void StoreMessage( string folder, IMAP_MessageFlags flags, DateTime internalDate, Stream message, int count )
<ObsoleteAttribute("Use method StoreMessage(string folder,IMAP_t_MsgFlags flags,DateTime internalDate,Stream message,int count) instead.")> Public Sub StoreMessage ( folder As String, flags As IMAP_MessageFlags, internalDate As DateTime, message As Stream, count As Integer )
public: [ObsoleteAttribute(L"Use method StoreMessage(string folder,IMAP_t_MsgFlags flags,DateTime internalDate,Stream message,int count) instead.")] void StoreMessage( String^ folder, IMAP_MessageFlags flags, DateTime internalDate, Stream^ message, int count )
[<ObsoleteAttribute("Use method StoreMessage(string folder,IMAP_t_MsgFlags flags,DateTime internalDate,Stream message,int count) instead.")>] member StoreMessage : folder : string * flags : IMAP_MessageFlags * internalDate : DateTime * message : Stream * count : int -> unit
Parameters
- folder (String)
- Folder name with path.
- flags (IMAP_MessageFlags)
- Message flags.
- internalDate (DateTime)
- Message internal data. DateTime.MinValue means server will allocate it.
- message (Stream)
- Message stream.
- count (Int32)
- Number of bytes send from message stream.
Exceptions
Exception | Condition |
---|---|
ObjectDisposedException | Is raised when this object is disposed and and this method is accessed. |
InvalidOperationException | Is raised when IMAP client is not in valid state. For example 'not connected'. |
ArgumentNullException | Is raised when folder or stream is null reference. |
ArgumentException | Is raised when any of the arguments has invalid value. |
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