Starts writing response to the specified stream.
Declaration Syntax
C# | Visual Basic | Visual C++ | F# |
protected virtual bool ToStreamAsync( IMAP_Session session, Stream stream, IMAP_Mailbox_Encoding mailboxEncoding, EventHandler<EventArgs<Exception>> completedAsyncCallback )
Protected Overridable 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 )
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
Parameters
- 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.
Return Value
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.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | Is raised when stream is null reference. |
Assembly: LumiSoft.Net (Module: LumiSoft.Net.dll) Version: 4.5.5510.19119