 | Received(String, IPAddress, String, IPAddress, DateTimeOffset) Constructor |
Initializes a new instance of the
Received class.
Namespace: MimeKitAssembly: MimeKit (in MimeKit.dll) Version: 4.17.0
Syntaxpublic 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.
Exceptions| Exception | Condition |
|---|
| 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.
|
Remarks
Creates a new
Received instance with the specified source and receiving host information,
along with the date and time the message was received.
See Also