Received(String, IPAddress, String, IPAddress, DateTimeOffset) Constructor

Initializes a new instance of the Received class.

Definition

Namespace: MimeKit
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public Received(
	string from,
	IPAddress fromTcpInfo,
	string by,
	IPAddress byTcpInfo,
	DateTimeOffset dateTime
)

Parameters

from  String
The name of the source host.
fromTcpInfo  IPAddress
The IP address of the source host.
by  String
The name of the receiving host.
byTcpInfo  IPAddress
The IP address of the receiving host.
dateTime  DateTimeOffset
The date and time the message was received.

Remarks

Creates a new Received instance with the specified source and receiving host information, along with the date and time the message was received.

Exceptions

ArgumentNullException from is .

-or-

fromTcpInfo is .

-or-

by is .

-or-

byTcpInfo is .
ArgumentException from is not a valid domain name or address literal.

-or-

by is not a valid domain name or address literal.

See Also