Hunny Software Library Reference

SmtpClient.CapabilityAt Method 

Gets the server capability item at the specified position.

[Visual Basic]
Public Function CapabilityAt( _
   ByVal index As Integer _
) As String
[C#]
public string CapabilityAt(
   int index
);

Parameters

index
The position of capability item to return. (Starts at 0.)

Return Value

The capability item at the specified position in the list.

Remarks

If the EHLO command succeeds, the SMTP server returns a list of optional capabilities that it supports.

The SmtpClient class saves this list of capabilities and provides methods that allow you to examine it. The CapabilityAt method returns the item at the specified position in the list. You may use this method and the NumCapabilities property to iterate over the entries in the list.

See Also

SmtpClient Class | Hunny.Mail Namespace | SmtpClient.NumCapabilities property