EmailMessage.Create Method (BodyFormat, Boolean, String)

The Create method creates a new instance of the EmailMessage class by using the specified BodyFormat, createAlternative parameter value, and charsetName parameter 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, _
    charsetName As String _
) As EmailMessage
public static EmailMessage Create (
    BodyFormat bodyFormat,
    bool createAlternative,
    string charsetName
)
public:
static EmailMessage^ Create (
    BodyFormat bodyFormat, 
    bool createAlternative, 
    String^ charsetName
)
public static EmailMessage Create (
    BodyFormat bodyFormat, 
    boolean createAlternative, 
    String charsetName
)
public static function Create (
    bodyFormat : BodyFormat, 
    createAlternative : boolean, 
    charsetName : String
) : EmailMessage

Parameters

  • bodyFormat
    One of the valid BodyFormat enumeration values that specify the format for the body of the e-mail message.
  • createAlternative
    A Boolean value that indicates whether alternative body text should be created when the bodyFormat parameter value is set to Html.
  • charsetName
    A string value that indicates the character set to use for the body of the message.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows XP Professional with Service Pack 2 (SP2), Windows Server 2003,

Target Platforms

Windows Server 2003