ImapGetExtension Method
Returns the name of the specified IMAP4 capability if it's supported by the mail server.

Namespace: MailBee.ImapMail
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 11.2.0 build 590 for .NET 4.5
Syntax
public string GetExtension(
	string name
)

Parameters

name
Type: SystemString
The name of the capability. This name is case-insensitive, e.g. uidplus and UIDPLUS mean the same.

Return Value

Type: String
If the specified capability is supported, the return value is the lowercased name of the capability. If the given capability is not supported, the return value is a null reference (Nothing in Visual Basic).
Exceptions
ExceptionCondition
MailBeeExceptionAn error occurred and ThrowExceptions is true.
Remarks
You should already be connected to the IMAP4 server in order to use this method.
Examples
This sample displays whether the server supports UIDPLUS capability.
// To use the code below, import MailBee namespaces at the top of your code.
using MailBee;
using MailBee.ImapMail;

// The actual code (put it into a method of your class).
Imap imp = new Imap();
imp.Connect("mail.domain.com");
string ext = imp.GetExtension("UIDPLUS");
if (ext == null)
{
    Console.WriteLine("The given IMAP4 server does not support UIDPLUS");
}
else
{
    Console.WriteLine("UIDPLUS is supported");
}
imp.Disconnect();
See Also