EmailMessage.Create Method (BodyFormat, Boolean)
The Create method creates a new instance of the EmailMessage class by using the specified BodyFormat and createAlternative value.
Namespace: Microsoft.Exchange.Data.Transport.Email
Assembly: Microsoft.Exchange.Data.Transport (in Microsoft.Exchange.Data.Transport.dll)
Syntax
'Declaration
Public Shared Function Create ( _
bodyFormat As BodyFormat, _
createAlternative As Boolean _
) As EmailMessage
'Usage
Dim bodyFormat As BodyFormat
Dim createAlternative As Boolean
Dim returnValue As EmailMessage
returnValue = EmailMessage.Create(bodyFormat, _
createAlternative)
public static EmailMessage Create(
BodyFormat bodyFormat,
bool createAlternative
)
Parameters
- bodyFormat
Type: Microsoft.Exchange.Data.Transport.Email.BodyFormat
One of the valid BodyFormat enumeration values that specify the format for the body of the e-mail message.
- createAlternative
Type: System.Boolean
A Boolean value that indicates whether alternative body text should be created when the bodyFormat parameter value is set to Html.