Поделиться через


MailItem members

The MailItem class is the base class for derived classes that represent the envelope of an e-mail message.

The MailItem type exposes the following members.

Properties

  Name Description
Public property DateTimeReceived When overridden in a derived class, the DateTimeReceived property gets the Coordinated Universal Time (UTC) date and time that the messaging system received the message.
Public property DeliveryPriority When overridden in a derived class, the DeliveryPriority property gets or sets the DeliveryPriority value of the message.
Public property DsnFormatRequested When overridden in a derived class, the DsnFormatRequested property gets or sets the format for Delivery Status Notification (DSN) messages about the message.
Public property EnvelopeId When overridden in a derived class, the EnvelopeId property gets or sets the identifier (ID) for the envelope of the message.
Public property FromAddress When overridden in a derived class, the FromAddress property gets or sets the routing address of the sender of the message.
Public property InboundDeliveryMethod When overridden in a derived class, the InboundDeliveryMethod method gets a value that indicates the inbound delivery method for this instance of the MailItem class.
Public property Message When overridden in a derived class, the Message property gets the underlying EmailMessage class object enclosed by the MailItem class object.
Public property MimeStreamLength When overridden in a derived class, the MimeStreamLength property gets the current length of the Multipurpose Internet Mail Extensions (MIME) content for this instance of the derived class.
Public property MustDeliver When overridden in a derived class, the MustDeliver property returns a Boolean value that indicates whether the message is marked for special delivery.
Public property OriginalAuthenticator When overridden in a derived class, the OriginalAuthenticator property gets or sets the name of the user who originally logged on to the messaging system to send the message.
Public property OriginatingDomain When overridden in a derived class, the OriginatingDomain property gets the HELO or EHLO string presented to the Simple Mail Transfer Protocol (SMTP) server.
Public property OriginatorOrganization
Public property Properties When overridden in a derived class, the Properties property gets a list of named value pairs representing properties for the MailItem class.
Public property Recipients When overridden in a derived class, the Recipients property gets the collection of recipients on the envelope. This includes To, Cc, and Bcc recipients.
Public property TenantId The TenantId property gets the tenant to which the message belongs.

Top

Methods

  Name Description
Public method GetMimeReadStream When overridden in a derived class, the GetMimeReadStream method gets a readable stream that contains the Multipurpose Internet Mail Extensions (MIME) content for the derived class.
Public method GetMimeWriteStream When overridden in a derived class, the GetMimeWriteStream method gets a writeable stream that contains the Multipurpose Internet Mail Extensions (MIME) content for the derived class.
Public method SetMustDeliver When overridden in a derived class, the SetMustDeliver method specifies that the message will remain in queue until it is delivered, without expiring or generating a non-delivery report (NDR). Executing the SetMustDeliver method sets the value of the MustDeliver property to true.

Top

See also

Reference

MailItem class

Microsoft.Exchange.Data.Transport namespace