Share via


SPEmailMessage.PlainTextBody property

Gets the body of the e-mail message in plain-text format.

Namespace:  Microsoft.SharePoint.Utilities
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public ReadOnly Property PlainTextBody As String
    Get
'Usage
Dim instance As SPEmailMessage
Dim value As String

value = instance.PlainTextBody
public string PlainTextBody { get; }

Property value

Type: System.String
A string that contains the body of the message in plain-text format.

Remarks

For a message that contains only HTML, the PlainTextBody property returns a null reference (Nothing in Visual Basic).

See also

Reference

SPEmailMessage class

SPEmailMessage members

Microsoft.SharePoint.Utilities namespace