Smtp Protocol ExceptionCommand Property
Get the command that the client was processing when the error occurred.
Definition
Namespace: MailKit.Net.Smtp
Assembly: MailKit (in MailKit.dll) Version: 5.0.0
The command.
Assembly: MailKit (in MailKit.dll) Version: 5.0.0
C#
public SmtpCommand Command { get; }Property Value
SmtpCommandThe command.
Remarks
Gets the SMTP command that the client was sending, or whose response it was reading, when the error occurred.
This value will be Unknown if the exception was created using a constructor that does not take an SmtpCommand argument.