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
public static EmailMessage Create (
BodyFormat bodyFormat,
bool createAlternative
)
public:
static EmailMessage^ Create (
BodyFormat bodyFormat,
bool createAlternative
)
public static EmailMessage Create (
BodyFormat bodyFormat,
boolean createAlternative
)
public static function Create (
bodyFormat : BodyFormat,
createAlternative : boolean
) : 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.
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