Starts writing response to the specified stream.

C# | Visual Basic | Visual C++ | F# |
protected override bool ToStreamAsync( IMAP_Session session, Stream stream, IMAP_Mailbox_Encoding mailboxEncoding, EventHandler<EventArgs<Exception>> completedAsyncCallback )
Protected Overrides Function ToStreamAsync ( session As IMAP_Session, stream As Stream, mailboxEncoding As IMAP_Mailbox_Encoding, completedAsyncCallback As EventHandler(Of EventArgs(Of Exception)) ) As Boolean
protected: virtual bool ToStreamAsync( IMAP_Session^ session, Stream^ stream, IMAP_Mailbox_Encoding mailboxEncoding, EventHandler<EventArgs<Exception^>^>^ completedAsyncCallback ) override
abstract ToStreamAsync : session : IMAP_Session * stream : Stream * mailboxEncoding : IMAP_Mailbox_Encoding * completedAsyncCallback : EventHandler<EventArgs<Exception>> -> bool override ToStreamAsync : session : IMAP_Session * stream : Stream * mailboxEncoding : IMAP_Mailbox_Encoding * completedAsyncCallback : EventHandler<EventArgs<Exception>> -> bool

- session (IMAP_Session)
- Owner IMAP session.
- stream (Stream)
- Stream where to store response.
- mailboxEncoding (IMAP_Mailbox_Encoding)
- Specifies how mailbox name is encoded.
- completedAsyncCallback (EventHandler<(Of <(<'EventArgs<(Of <(<'Exception>)>)>>)>)>)
- Callback to be called when this method completes asynchronously.

Boolean
Returns true is method completed asynchronously(the completedAsyncCallback is raised upon completion of the operation). Returns false if operation completed synchronously.
Returns true is method completed asynchronously(the completedAsyncCallback is raised upon completion of the operation). Returns false if operation completed synchronously.

Exception | Condition |
---|---|
ArgumentNullException | Is raised when stream is null reference. |
Assembly: LumiSoft.Net (Module: LumiSoft.Net.dll) Version: 4.5.5510.19119