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




command
The command to issue to the server.
Sends the specified user command.

Syntax

Visual Basic (Declaration) 
Public Overloads Function Invoke( _
   ByVal command As String _
) As ImapResponse()
Visual Basic (Usage)Copy Code
Dim instance As Imap
Dim command As String
Dim value() As ImapResponse
 
value = instance.Invoke(command)
C# 
public ImapResponse[] Invoke( 
   string command
)
Managed Extensions for C++ 
public: ImapResponse*[]* Invoke( 
   string* command
) 
C++/CLI 
public:
array<ImapResponse^>^ Invoke( 
   String^ command
) 

Parameters

command
The command to issue to the server.

Return Value

An ImapResponse object representing the response from the server.

Exceptions

ExceptionDescription
Dart.PowerTCP.Mail.ProtocolExceptionBad IMAP protocol response received from server.
System.Net.Sockets.SocketExceptionThe requested address is not valid in its context.

Remarks

The Imap.Invoke method sends out the specified command. 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.