Returns a listing of capabilities that the POP3 server supports. All strings in the returned array are guaranteed to be upper-case.

Namespace: S22.Pop3
Assembly: S22.Pop3 (in S22.Pop3.dll) Version: 1.1.4653.26443 (1.1.0.0)

Syntax

C#
public string[] Capabilities()

Return Value

A listing of supported capabilities as an array of strings

Remarks

This is one of the few methods which can be called in a non-authenticated state. The command for retrieving a list of capabilities is an optional extension to the POP3 protocol, so not every server may support it.

Examples

This example shows how to establish a connection with a POP3 server and print out the POP3 options, which the server supports.
CopyC#
/* Connect to AOL's POP3 server */
Pop3Client Client = new Pop3Client("pop.aol.com");

/* Print out the server's capabilities. */
foreach(string s in Client.Capabilities())
    Console.WriteLine(s);

Client.Dispose();

Exceptions

ExceptionCondition
System..::..NotSupportedExceptionThrown if the server does not support retrieving a list of its capabilities.

See Also