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)
Available in Sandboxed Solutions: No

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