System.Net.Mail.AlternateView.CreateAlternateViewFromString Method

Creates a System.Net.Mail.AlternateView of an email message using the content specified in a string.

Syntax

public static AlternateView CreateAlternateViewFromString (string content)

Parameters

content
The string that contains the content of the email message.

Returns

An System.Net.Mail.AlternateView object that represents an alternate view of an email message.

Remarks

The default media type is plain text and the default encoding is ASCII.

Requirements

Namespace: System.Net.Mail
Assembly: System (in System.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0