Hunny Software Library Reference

SmtpClient.NumCapabilities Property

Gets the number of items in the server's capabilities list.

[Visual Basic]
Public ReadOnly Property NumCapabilities As Integer
[C#]
public int NumCapabilities {get;}

Property Value

The number of items in the server's capabilities 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 NumCapabilities property tells the number of items in the list. You may use this property and the CapabilityAt method to iterate over the entries in the list.

See Also

SmtpClient Class | Hunny.Mail Namespace | SmtpClient.CapabilityAt method