PowerTCP Mail for .NET
BeginInvoke(String,Object) Method
See Also  Send comments on this topic.
Dart.PowerTCP.Mail Namespace > Imap Class > BeginInvoke Method : BeginInvoke(String,Object) Method




command
The command to issue to the server.
state
User state information.
Begins to send the specified user command.

Syntax

Visual Basic (Declaration) 
Public Overloads Function BeginInvoke( _
   ByVal command As String, _
   ByVal state As Object _
) As IAsyncResult
Visual Basic (Usage)Copy Code
Dim instance As Imap
Dim command As String
Dim state As Object
Dim value As IAsyncResult
 
value = instance.BeginInvoke(command, state)
C# 
public IAsyncResult BeginInvoke( 
   string command,
   object state
)
Managed Extensions for C++ 
public: IAsyncResult* BeginInvoke( 
   string* command,
   Object* state
) 
C++/CLI 
public:
IAsyncResult^ BeginInvoke( 
   String^ command,
   Object^ state
) 

Parameters

command
The command to issue to the server.
state
User state information.

Return Value

An IAsyncResult that represents the asynchronous operation, which could still be pending.

Exceptions

ExceptionDescription
Dart.PowerTCP.Mail.ProtocolExceptionBad IMAP protocol response received from server.
System.Net.Sockets.SocketExceptionThe requested address is not valid in its context.
System.InvalidOperationExceptionBeginXXX method used without providing an EndXXX event handler.

Remarks

The Imap.BeginInvoke method begins to send out the specified command. Upon completion the Imap.EndInvoke event is raised. This is useful for enabling communication with servers that recognize proprietary commands not included in the Imap component model.

Requirements

Target Platforms: Microsoft .NET Framework 2.0

See Also

Documentation Version 3.2
© 2010 Dart Communications. All Rights Reserved.