System.Net.Mail.AlternateView.CreateAlternateViewFromString Method

Creates an System.Net.Mail.AlternateView of an email message using the content specified in a string, the specified text encoding, and MIME media type of the content.

Syntax

public static AlternateView CreateAlternateViewFromString (string content, System.Text.Encoding encoding, string mediaType)

Parameters

encoding
Documentation for this section has not yet been entered.
content
A string that contains the content for this attachment.
mediaType
The MIME media type of the content.

Returns

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

Remarks

Documentation for this section has not yet been entered.

Requirements

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