| 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.| Exception | Description |
|---|---|
| Dart.PowerTCP.Mail.ProtocolException | Bad IMAP protocol response received from server. |
| System.Net.Sockets.SocketException | The requested address is not valid in its context. |
| System.InvalidOperationException | BeginXXX method used without providing an EndXXX event handler. |
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.
Target Platforms: Microsoft .NET Framework 2.0