LumiSoft Net Help
ToStreamAsync Method (session, stream, mailboxEncoding, completedAsyncCallback)
NamespacesLumiSoft.Net.IMAPIMAP_r_u_FetchToStreamAsync(IMAP_Session, Stream, IMAP_Mailbox_Encoding, EventHandler<(Of <<'(EventArgs<(Of <<'(Exception>)>>)>)>>))
Starts writing response to the specified stream.
Declaration Syntax
C#Visual BasicVisual 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 
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.
Exceptions
ExceptionCondition
ArgumentNullExceptionIs raised when stream is null reference.

Assembly: LumiSoft.Net (Module: LumiSoft.Net.dll) Version: 4.5.5510.19119