Starts writing response to the specified stream.
Declaration Syntax
C# | Visual Basic | Visual C++ | F# |
public bool ToStreamAsync( Stream stream, IMAP_Mailbox_Encoding mailboxEncoding, EventHandler<EventArgs<Exception>> completedAsyncCallback )
Public Function ToStreamAsync ( stream As Stream, mailboxEncoding As IMAP_Mailbox_Encoding, completedAsyncCallback As EventHandler(Of EventArgs(Of Exception)) ) As Boolean
public: bool ToStreamAsync( Stream^ stream, IMAP_Mailbox_Encoding mailboxEncoding, EventHandler<EventArgs<Exception^>^>^ completedAsyncCallback )
member ToStreamAsync : stream : Stream * mailboxEncoding : IMAP_Mailbox_Encoding * completedAsyncCallback : EventHandler<EventArgs<Exception>> -> bool
Parameters
- 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