Hunny Software Library Reference

Imap4Client.ResponseAt Method 

Gets the response at the specified position.

[Visual Basic]
Public Function ResponseAt( _
   ByVal index As Integer _
) As Response
[C#]
public Response ResponseAt(
   int index
);

Parameters

index
The position of the response to return.

Return Value

The Response instance at the specified position.

Remarks

After an IMAP4 server receives a client command, it sends one or more responses.

When you call a method on an Imap4Client instance that sends a command to the server, the Imap4Client instance collects all the server's responses to the command. You may get the value of the NumResponses property to learn how many responses the client received from the server. You may then call this method to get the response at position index.

The argument index must satisfy the condition 0 <= index < NumResponses.

When you call another method to execute another command, the Imap4Client instance first deletes all the old responses.

Note: Because Response is an abstract base class, the returned instance reference is a subclass of Response.

See Also

Imap4Client Class | Hunny.Mail Namespace