SocketCreatingEventArgsNewSocket Property |
Gets or sets the socket object which will be used to establish the connection.
Namespace: MailBeeAssembly: MailBee.NET (in MailBee.NET.dll) Version: 12.5.0 build 687 for .NET 4.5
Syntax public Socket NewSocket { get; set; }
Public Property NewSocket As Socket
Get
Set
Property Value
Type:
SocketThe
Socket object to be used for making the connection, or a null reference (
Nothing in Visual Basic) to
let MailBee create the socket. The default value is null reference.
Remarks
You can set this property to provide your own (such as specially configured) socket object.
Note |
---|
You must be prepared to the situation when multiple sockets are requested for the same connection (for instance,
the previous attempt failed because IPv6 endpoint was provided or more than one SMTP server was provided and several were tried, etc).
You need to provide fresh socket object each time because sockets cannot be reused no matter if the connection attempt failed or not.
|
In case of UWP edition, this property has
StreamSocket type.
See Also