SmtpGetSocketError Method
Returns a Win32 error code of the last socket-related error.

Namespace: MailBee.SmtpMail
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 12.4 build 677 for .NET 4.5
Syntax
public int GetSocketError()

Return Value

Type: Int32
An integer value containing the last socket-related error code, or 0 if there is no error.
Exceptions
ExceptionCondition
MailBeeInvalidStateExceptionThere are multiple or non-SMTP connections being opened at the moment (IsSmtpContext is false).
Remarks
This error code is obtained from NativeErrorCode.
See Also