MapiMessage Class |
Namespace: Aspose.Email.Mapi
The MapiMessage type exposes the following members.
Name | Description | |
---|---|---|
![]() | MapiMessage |
Initializes a new instance of the MapiMessage class.
|
![]() | MapiMessage(OutlookMessageFormat) |
Initializes a new instance of the MapiMessage class.
|
![]() | MapiMessage(String, String, String, String) |
Initializes a new instance of the MapiMessage class.
|
![]() | MapiMessage(String, String, String, String, OutlookMessageFormat) |
Initializes a new instance of the MapiMessage class.
|
Name | Description | |
---|---|---|
![]() | Attachments |
Gets the attachments in the message.
(Inherited from MapiMessageItemBase.) |
![]() | Billing |
Contains the billing information associated with an item.
(Inherited from MapiMessageItemBase.) |
![]() | Body |
Gets the message text.
|
![]() | BodyHtml |
Gets the BodyRtf of the message converted to HTML, if present, otherwise an empty string.
(Inherited from MapiMessageItemBase.) |
![]() | BodyRtf |
Gets or sets the RTF formatted message text.
(Inherited from MapiMessageItemBase.) |
![]() | BodyType |
Gets the type of the body.
(Inherited from MapiMessageItemBase.) |
![]() | Categories |
Contains keywords or categories for the message object.
(Inherited from MapiMessageItemBase.) |
![]() | ClientSubmitTime |
Gets or sets the date and time
the message sender submitted a message.
|
![]() | CodePage |
Gets the code page.
(Inherited from MapiPropertyContainer.) |
![]() | Companies |
Contains the names of the companies that are associated with an item.
(Inherited from MapiMessageItemBase.) |
![]() | ConversationTopic |
Gets the topic of the first message in a conversation thread.
|
![]() | DeliveryTime |
Gets or sets the date and time
a message was delivered.
|
![]() | DisplayBcc |
Gets a list of the display names of any blind carbon copy (BCC) message recipients, separated by semicolons (;).
|
![]() | DisplayCc |
Gets a list of the display names of any carbon copy (CC) message recipients, separated by semicolons (;).
|
![]() | DisplayName |
Gets the display name for the message.
|
![]() | DisplayNamePrefix |
Gets a prefix of the display name.
|
![]() | DisplayTo |
Gets a list of the display names of the primary (To) message recipients, separated by semicolons (;).
|
![]() | Flags |
Gets the message flags.
|
![]() | Headers |
Gets the transport message headers
|
![]() | InternetMessageId |
Gets the message id of the message.
|
![]() | ItemId |
The item id, uses with a server
(Inherited from MapiMessageItemBase.) |
![]() | MessageClass |
Gets a case-sensitive string that identifies the sender-defined message class, such as IPM.Note.
The message class specifies the type, purpose, or content of the message.
(Inherited from MapiMessageItemBase.) |
![]() | MessageFormat |
Gets the outlook message format.
|
![]() | Mileage |
Contains the mileage information that is associated with an item.
(Inherited from MapiMessageItemBase.) |
![]() | NamedProperties |
Gets the named properties of message.
(Inherited from MapiMessageItemBase.) |
![]() | NamedPropertyMapping |
Gets the named property mapping.
(Inherited from MapiMessageItemBase.) |
![]() | NormalizedSubject |
Gets normalized subject of the message.
|
![]() | Properties |
Gets the collection of properties.
(Inherited from MapiPropertyContainer.) |
![]() | PropertyStream |
Gets the property stream.
(Inherited from MapiMessageItemBase.) |
![]() | ReadReceiptRequested |
Gets or sets a value indicating whether the read receipt is requested.
|
![]() | Recipients |
Gets the recipients of the message.
(Inherited from MapiMessageItemBase.) |
![]() | ReplyTo |
Gets or sets the reply to names.
|
![]() | SenderAddressType |
Gets the message sender's e-mail address type.
|
![]() | SenderEmailAddress |
Gets or sets the message sender's e-mail address.
|
![]() | SenderName |
Gets or sets the message sender's display name.
|
![]() | SenderSmtpAddress |
Gets or sets the message sender's e-mail address.
|
![]() | Sensitivity |
Gets the Sensitivity.
(Inherited from MapiMessageItemBase.) |
![]() | SentRepresentingAddressType |
Gets the address type for the messaging user represented by the sender.
|
![]() | SentRepresentingEmailAddress |
Gets or sets the e-mail address for the messaging user represented by the sender.
|
![]() | SentRepresentingName |
Gets or sets the display name for the messaging user represented by the sender.
|
![]() | SentRepresentingSmtpAddress |
Gets or sets the e-mail address for the messaging user represented by the sender.
|
![]() | Subject |
Gets or sets the subject of the message.
(Inherited from MapiMessageItemBase.) |
![]() | SubjectPrefix |
Gets a subject prefix that typically indicates some action on a message, such as "FW: " for forwarding.
(Inherited from MapiMessageItemBase.) |
![]() | SubStorages |
Gets the sub storages.
(Inherited from MapiMessageItemBase.) |
![]() | TransportMessageHeaders |
Gets the transport-specific message envelope information.
|
Name | Description | |
---|---|---|
![]() | AddCustomProperty(MapiProperty, String) |
Adds the custom property.
|
![]() | AddCustomProperty(MapiPropertyType, Byte, String) |
Adds the custom property.
|
![]() | CheckBounced |
Checks whether this message can be treated as a bounce message.
|
![]() | Clone |
Creates a new object that is a copy of the current instance.
|
![]() ![]() ![]() | DestroyAttachments |
Destroies the attachments in the specified Outlook Message files. DestroyAttachments will ignore the attachment parsing.
|
![]() | Dispose |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from MapiMessageItemBase.) |
![]() | Equals | (Inherited from Object.) |
![]() ![]() | FromFile |
Create an instance of MapiMessage from the specified file.
|
![]() ![]() | FromMailMessage(String) |
Creates an instance of MapiMessage from the MailMessage.
|
![]() ![]() | FromMailMessage(MailMessage) |
Creates an instance of MapiMessage from the MailMessage.
|
![]() ![]() | FromMailMessage(MailMessage, MapiConversionOptions) |
Creates an instance of MapiMessage from the MailMessage.
|
![]() ![]() | FromProperties |
Creates an instance of MapiMessage from a collection of Mapi properties.
|
![]() ![]() | FromStream |
Create an instance of MapiMessage from the specified stream.
|
![]() | GetCustomProperties |
Gets collection of custom MapiProperties.
|
![]() | GetHashCode | (Inherited from Object.) |
![]() | GetProperty |
Gets MAPI property by property descriptor.
(Inherited from MapiMessageItemBase.) |
![]() | GetPropertyBoolean |
Gets the value of the property specified by tag as Boolean type.
(Inherited from MapiPropertyContainer.) |
![]() | GetPropertyBytes |
Gets the string value of the property specified by tag.
(Inherited from MapiPropertyContainer.) |
![]() | GetPropertyDateTime |
Gets the value of the property specified by tag as DateTime type.
(Inherited from MapiPropertyContainer.) |
![]() | GetPropertyInt32 |
Gets the int32 value of the property specified by tag.
(Inherited from MapiPropertyContainer.) |
![]() | GetPropertyLong |
Gets the value of the property specified by tag as Long (int64) type.
(Inherited from MapiPropertyContainer.) |
![]() | GetPropertyShort |
Gets the value of the property specified by tag as Short type.
(Inherited from MapiPropertyContainer.) |
![]() | GetPropertyString(Int64) |
Gets the string value of the property specified by tag.
(Inherited from MapiPropertyContainer.) |
![]() | GetPropertyString(Int64, Int32) |
Gets the string value of the property specified by tag.
(Inherited from MapiPropertyContainer.) |
![]() | GetType | (Inherited from Object.) |
![]() ![]() | IsMsgFormat(Stream) |
Determines whether the specified stream has a MSG format.
|
![]() ![]() | IsMsgFormat(String) |
Determines whether the specified file has a MSG format.
|
![]() | IsStoreUnicodeOk |
Determines if string properties are Unicode encoded or not.
(Inherited from MapiPropertyContainer.) |
![]() ![]() | Load(Stream, LoadOptions) |
Loads message from stream with additional options.
|
![]() ![]() | Load(String, LoadOptions) |
Loads message from file with additional options.
|
![]() ![]() | LoadFromTnef(Stream) |
Loads message from Transport Neutral Encapsulation Format (TNEF) data structure
|
![]() ![]() | LoadFromTnef(String) |
Loads message from Transport Neutral Encapsulation Format (TNEF) data structure
|
![]() ![]() ![]() | RemoveAttachments |
Removes all of the attachments from the specified Outlook Message files.
|
![]() | RemoveProperty |
Provides correctly removing property from all collections.
(Inherited from MapiMessageItemBase.) |
![]() | Save(Stream) |
Saves to the specified stream as Msg.
|
![]() | Save(String) |
Saves to the specified file as Msg.
|
![]() | Save(Stream, SaveOptions) |
Saves message as a stream with additional options.
|
![]() | Save(String, SaveOptions) |
Saves message as a file with additional options.
|
![]() | SaveAsTemplate(Stream) |
Saves to the specified stream as Outlook File Template(OFT format).
|
![]() | SaveAsTemplate(String) |
Saves to the specified file as Outlook File Template(OFT format).
|
![]() | SaveAsTnef(Stream) |
Save message in TNEF format.
|
![]() | SaveAsTnef(String) |
Save message in TNEF format.
|
![]() | SetBodyContent |
Sets the content of the body.
(Inherited from MapiMessageItemBase.) |
![]() | SetMessageFlags |
Sets the message flags.
(Inherited from MapiMessageItemBase.) |
![]() | SetProperty(MapiProperty) |
Sets the property.
(Inherited from MapiPropertyContainer.) |
![]() | SetProperty(PropertyDescriptor, Object) |
Sets MAPI property.
(Inherited from MapiMessageItemBase.) |
![]() | SetStringPropertyValue |
Sets the string property value.
|
![]() | ToMailMessage |
Creates an instance of MailMessage from this MapiMessage.
|
![]() | ToMapiMessageItem |
Convert MapiMessage to IMapiMessageItem object
in dependence with MessageClass.
|
![]() | ToString | (Inherited from Object.) |
![]() | TryGetPropertyData |
Try to get the property data with specified tag key.
(Inherited from MapiPropertyContainer.) |
![]() | TryGetPropertyDateTime |
Gets the value of the specified property as DateTime type.
A return value indicates whether the operation succeeded.
(Inherited from MapiPropertyContainer.) |
![]() | TryGetPropertyInt32 |
Gets the value of the specified property as Int32 type.
A return value indicates whether the operation succeeded.
(Inherited from MapiPropertyContainer.) |
![]() | TryGetPropertyLong |
Gets the value of the specified property as Long type.
A return value indicates whether the operation succeeded.
(Inherited from MapiPropertyContainer.) |
![]() | TryGetPropertyString(Int64) |
Try to get a property data as string with specified tag.
(Inherited from MapiPropertyContainer.) |
![]() | TryGetPropertyString(Int64, Int32) |
Try to get a property data as string with specified tag and code page.
(Inherited from MapiPropertyContainer.) |
![]() | TryGetPropertyString(Int64, String) |
Gets the value of the specified property as String type.
A return value indicates whether the operation succeeded.
(Inherited from MapiPropertyContainer.) |
![]() | TryGetPropertyString(Int64, String, Int32) |
Gets the value of the specified property as String type.
A return value indicates whether the operation succeeded.
(Inherited from MapiPropertyContainer.) |
The following exmaple demonstrates how to read Outlook Message files.
[C#]
//Open Outlook Message files MapiMessage msg = MapiMessage.FromFile(@"c:\outlookmessage.msg"); //read subject Console.WriteLine("Subject:" + msg.Subject); //sender name Console.WriteLine("From:" + msg.SenderName); //message body Console.WriteLine("Body:" + msg.Body); //Attachments foreach(MapiAttachment att in msg.Attachments) { Console.WriteLine("Attachment Name:"+att.FileName); att.Save(att.FileName); }
[Visual Basic]
'Open Outlook Message files Dim msg As MapiMessage = MapiMessage.FromFile("c:\outlookmessage.msg") 'read subject Console.WriteLine("Subject:" + msg.Subject) 'sender name Console.WriteLine("From:" + msg.SenderName) 'message body Console.WriteLine("Body:" + msg.Body) 'Attachments For Each att As MapiAttachment In msg.Attachments Console.WriteLine("Attachment Name:" + att.FileName) att.Save(att.FileName) Next