Compartir a través de


_MailItem.Body Property

Returns or sets a String (string in C#) representing the clear-text body of the Outlook item. Read/write.

Namespace:  Microsoft.Office.Interop.Outlook
Assembly:  Microsoft.Office.Interop.Outlook (in Microsoft.Office.Interop.Outlook.dll)

Syntax

'Declaration
<DispIdAttribute()> _
Property Body As String
    Get
    Set
'Usage
Dim instance As _MailItem
Dim value As String

value = instance.Body

instance.Body = value
[DispIdAttribute()]
string Body { get; set; }

Property Value

Type: System.String

Remarks

The _MailItem.BodyFormat property allows you to programmatically change the editor that is used for the body of an item.

See Also

Reference

_MailItem Interface

_MailItem Members

Microsoft.Office.Interop.Outlook Namespace

Other Resources

How to: Send an E-Mail Given the SMTP Address of an Account